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 => ::P0_a_e_a_b_he}, PGCODE => {:type => ::Thrift::Types::I32, :name => 'pgCode', :enum_class => ::P0_a_e_a_b_fe}, COUNTRY => {:type => ::Thrift::Types::STRING, :name => 'country'}, LANGUAGE => {:type => ::Thrift::Types::STRING, :name => 'language'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
653 |
# File 'lib/linerb/gen-rb/call_service.rb', line 653 def struct_fields; FIELDS; end |
#validate ⇒ Object
655 656 657 658 659 660 661 662 |
# File 'lib/linerb/gen-rb/call_service.rb', line 655 def validate unless @appStoreCode.nil? || ::P0_a_e_a_b_he::VALID_VALUES.include?(@appStoreCode) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field appStoreCode!') end unless @pgCode.nil? || ::P0_a_e_a_b_fe::VALID_VALUES.include?(@pgCode) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field pgCode!') end end |