Module: Airbnb::Service::Hongbao::Api::HelloResponseSmartclientModule::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.
116 117 118 |
# File 'lib/airbnb/service/hongbao/api/hongbao_data_smartclient_modules.rb', line 116 def non_null_checking_off @non_null_checking_off end |
#type_checking_off ⇒ Object
Class level accessors to turn on/off specific checking
115 116 117 |
# File 'lib/airbnb/service/hongbao/api/hongbao_data_smartclient_modules.rb', line 115 def type_checking_off @type_checking_off end |
Instance Method Details
#build(params = {}) ⇒ Object
118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/airbnb/service/hongbao/api/hongbao_data_smartclient_modules.rb', line 118 def build(params = {}) _internal_object = ::Airbnb::Service::Hongbao::Api::HelloResponse.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? = get_field_data(params, :message, :message, _internal_object.) _internal_object. = _internal_object.validate(Sparsam::STRICT) unless ::Airbnb::Service::Hongbao::Api::HelloResponse.type_checking_off return _internal_object end |