Class: GetProductRequest
- Inherits:
-
Object
- Object
- GetProductRequest
- 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
- PRODUCTTYPE =
1
- PRODUCTID =
2
- CARRIERCODE =
3
- SAVEBROWSINGHISTORY =
4
- FIELDS =
{ PRODUCTTYPE => {:type => ::Thrift::Types::I32, :name => 'productType', :enum_class => ::P0_a_a_b_a_a_t1}, PRODUCTID => {:type => ::Thrift::Types::STRING, :name => 'productId'}, CARRIERCODE => {:type => ::Thrift::Types::STRING, :name => 'carrierCode'}, SAVEBROWSINGHISTORY => {:type => ::Thrift::Types::BOOL, :name => 'saveBrowsingHistory'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
11011 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 11011 def struct_fields; FIELDS; end |
#validate ⇒ Object
11013 11014 11015 11016 11017 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 11013 def validate unless @productType.nil? || ::P0_a_a_b_a_a_t1::VALID_VALUES.include?(@productType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field productType!') end end |