Class: ChangeSubscriptionResponse
- Inherits:
-
Object
- Object
- ChangeSubscriptionResponse
- 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
- RESULT =
1
- ORDERID =
2
- CONFIRMURL =
3
- FIELDS =
{ RESULT => {:type => ::Thrift::Types::I32, :name => 'result', :enum_class => ::P0_a_a_b_a_a_j3}, ORDERID => {:type => ::Thrift::Types::STRING, :name => 'orderId'}, CONFIRMURL => {:type => ::Thrift::Types::STRING, :name => 'confirmUrl'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
11570 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 11570 def struct_fields; FIELDS; end |
#validate ⇒ Object
11572 11573 11574 11575 11576 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 11572 def validate unless @result.nil? || ::P0_a_a_b_a_a_j3::VALID_VALUES.include?(@result) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field result!') end end |