Class: CurrencyProperty
- Inherits:
-
Object
- Object
- CurrencyProperty
- 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
- CODE =
1
- SYMBOL =
2
- POSITION =
3
- SCALE =
4
- FIELDS =
{ CODE => {:type => ::Thrift::Types::STRING, :name => 'code'}, SYMBOL => {:type => ::Thrift::Types::STRING, :name => 'symbol'}, POSITION => {:type => ::Thrift::Types::I32, :name => 'position', :enum_class => ::G_a_m_a0_e}, SCALE => {:type => ::Thrift::Types::I32, :name => 'scale'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
12402 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12402 def struct_fields; FIELDS; end |
#validate ⇒ Object
12404 12405 12406 12407 12408 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12404 def validate unless @position.nil? || ::G_a_m_a0_e::VALID_VALUES.include?(@position) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field position!') end end |