Class: CallService::GetCallCreditProducts_args
- Inherits:
-
Object
- Object
- CallService::GetCallCreditProducts_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/linerb/gen-rb/call_service.rb
Constant Summary collapse
- APPSTORECODE =
2
- PGCODE =
3
- COUNTRY =
4
- LANGUAGE =
5
- FIELDS =
{ APPSTORECODE => {:type => ::Thrift::Types::I32, :name => 'appStoreCode', :enum_class => ::J0_a_e_a_b_ge}, PGCODE => {:type => ::Thrift::Types::I32, :name => 'pgCode', :enum_class => ::J0_a_e_a_b_ee}, COUNTRY => {:type => ::Thrift::Types::STRING, :name => 'country'}, LANGUAGE => {:type => ::Thrift::Types::STRING, :name => 'language'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
662 |
# File 'lib/linerb/gen-rb/call_service.rb', line 662 def struct_fields; FIELDS; end |
#validate ⇒ Object
664 665 666 667 668 669 670 671 |
# File 'lib/linerb/gen-rb/call_service.rb', line 664 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 |