Class: ImageTextProperty
- Inherits:
-
Object
- Object
- ImageTextProperty
- 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
- STATUS =
1
- PLAINTEXT =
2
- NAMETEXTMAXCHARACTERCOUNT =
3
- ENCRYPTEDTEXT =
4
- FIELDS =
{ STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :enum_class => ::P0_a_a_b_a_a_a1}, PLAINTEXT => {:type => ::Thrift::Types::STRING, :name => 'plainText'}, NAMETEXTMAXCHARACTERCOUNT => {:type => ::Thrift::Types::I32, :name => 'nameTextMaxCharacterCount'}, ENCRYPTEDTEXT => {:type => ::Thrift::Types::STRING, :name => 'encryptedText'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
9107 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9107 def struct_fields; FIELDS; end |
#validate ⇒ Object
9109 9110 9111 9112 9113 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9109 def validate unless @status.nil? || ::P0_a_a_b_a_a_a1::VALID_VALUES.include?(@status) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field status!') end end |