Module: Airbnb::Service::Hongbao::Api::HongbaoGetCouponMessagesResponseSmartclientModule::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.
2235 2236 2237 |
# File 'lib/airbnb/service/hongbao/api/hongbao_data_smartclient_modules.rb', line 2235 def non_null_checking_off @non_null_checking_off end |
#type_checking_off ⇒ Object
Class level accessors to turn on/off specific checking
2234 2235 2236 |
# File 'lib/airbnb/service/hongbao/api/hongbao_data_smartclient_modules.rb', line 2234 def type_checking_off @type_checking_off end |
Instance Method Details
#build(params = {}) ⇒ Object
2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 |
# File 'lib/airbnb/service/hongbao/api/hongbao_data_smartclient_modules.rb', line 2237 def build(params = {}) _internal_object = ::Airbnb::Service::Hongbao::Api::HongbaoGetCouponMessagesResponse.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? state = get_field_data(params, :state, :state, _internal_object.state) _internal_object.state = state cta_link = get_field_data(params, :cta_link, :ctaLink, _internal_object.ctaLink) _internal_object.ctaLink = cta_link _internal_object.validate(Sparsam::STRICT) unless ::Airbnb::Service::Hongbao::Api::HongbaoGetCouponMessagesResponse.type_checking_off return _internal_object end |