Module: Airbnb::Service::Hongbao::Api::HongbaoGetCtaLinkRequestSmartclientModule::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.
1959 1960 1961 |
# File 'lib/airbnb/service/hongbao/api/hongbao_data_smartclient_modules.rb', line 1959 def non_null_checking_off @non_null_checking_off end |
#type_checking_off ⇒ Object
Class level accessors to turn on/off specific checking
1958 1959 1960 |
# File 'lib/airbnb/service/hongbao/api/hongbao_data_smartclient_modules.rb', line 1958 def type_checking_off @type_checking_off end |
Instance Method Details
#build(params = {}) ⇒ Object
1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 |
# File 'lib/airbnb/service/hongbao/api/hongbao_data_smartclient_modules.rb', line 1961 def build(params = {}) _internal_object = ::Airbnb::Service::Hongbao::Api::HongbaoGetCtaLinkRequest.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? user_agent = get_field_data(params, :user_agent, :userAgent, _internal_object.userAgent) _internal_object.userAgent = user_agent non_null_validator(:user_agent, user_agent) unless ::Airbnb::Service::Hongbao::Api::HongbaoGetCtaLinkRequest.non_null_checking_off _internal_object.validate(Sparsam::STRICT) unless ::Airbnb::Service::Hongbao::Api::HongbaoGetCtaLinkRequest.type_checking_off return _internal_object end |