Module: Airbnb::Service::Hongbao::Api::HongbaoCampaignTextDataResponseSmartclientModule::GenerateClassMethods
- Defined in:
- lib/airbnb/service/hongbao/api/hongbao_data_smartclient_modules.rb
Instance Attribute Summary collapse
-
#non_null_checking_off ⇒ Object
Returns the value of attribute non_null_checking_off.
-
#type_checking_off ⇒ Object
Class level accessors to turn on/off specific checking.
Instance Method Summary collapse
Instance Attribute Details
#non_null_checking_off ⇒ Object
Returns the value of attribute non_null_checking_off.
2836 2837 2838 |
# File 'lib/airbnb/service/hongbao/api/hongbao_data_smartclient_modules.rb', line 2836 def non_null_checking_off @non_null_checking_off end |
#type_checking_off ⇒ Object
Class level accessors to turn on/off specific checking
2835 2836 2837 |
# File 'lib/airbnb/service/hongbao/api/hongbao_data_smartclient_modules.rb', line 2835 def type_checking_off @type_checking_off end |
Instance Method Details
#build(params = {}) ⇒ Object
2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 |
# File 'lib/airbnb/service/hongbao/api/hongbao_data_smartclient_modules.rb', line 2838 def build(params = {}) _internal_object = ::Airbnb::Service::Hongbao::Api::HongbaoCampaignTextDataResponse.send(:new) return _internal_object if params.nil? raise TypeError.new("Expect a Hash for params in initialize, while it is #{params.class}") unless params.is_a?(Hash) return _internal_object if params.empty? claim_buton = get_field_data(params, :claim_buton, :claimButon, _internal_object.claimButon) _internal_object.claimButon = claim_buton _internal_object.validate(Sparsam::STRICT) unless ::Airbnb::Service::Hongbao::Api::HongbaoCampaignTextDataResponse.type_checking_off return _internal_object end |