Class: GetCoinProductsRequest
- Inherits:
-
Object
- Object
- GetCoinProductsRequest
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/linerb/gen-rb/takagi_chan_types.rb,
lib/linerb/gen-rb/takagi_chan_types.rb
Constant Summary collapse
- APPSTORECODE =
1
- COUNTRY =
2
- LANGUAGE =
3
- PGCODE =
4
- FIELDS =
{ APPSTORECODE => {:type => ::Thrift::Types::I32, :name => 'appStoreCode', :enum_class => ::J0_a_e_a_b_ge}, COUNTRY => {:type => ::Thrift::Types::STRING, :name => 'country'}, LANGUAGE => {:type => ::Thrift::Types::STRING, :name => 'language'}, PGCODE => {:type => ::Thrift::Types::I32, :name => 'pgCode', :optional => true, :enum_class => ::J0_a_e_a_b_ee} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
12793 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12793 def struct_fields; FIELDS; end |
#validate ⇒ Object
12795 12796 12797 12798 12799 12800 12801 12802 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12795 def validate unless @appStoreCode.nil? || ::J0_a_e_a_b_ge::VALID_VALUES.include?(@appStoreCode) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field appStoreCode!') end unless @pgCode.nil? || ::J0_a_e_a_b_ee::VALID_VALUES.include?(@pgCode) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field pgCode!') end end |