Class: SpotItem
- Inherits:
-
Object
- Object
- SpotItem
- 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
- NAME =
2
- PHONE =
3
- CATEGORY =
4
- MID =
5
- COUNTRYAREACODE =
6
- FREEPHONECALLABLE =
10
- FIELDS =
{ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}, PHONE => {:type => ::Thrift::Types::STRING, :name => 'phone'}, CATEGORY => {:type => ::Thrift::Types::I32, :name => 'category', :enum_class => ::J0_a_e_a_b_mg}, MID => {:type => ::Thrift::Types::STRING, :name => 'mid'}, COUNTRYAREACODE => {:type => ::Thrift::Types::STRING, :name => 'countryAreaCode'}, FREEPHONECALLABLE => {:type => ::Thrift::Types::BOOL, :name => 'freePhoneCallable'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
7416 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 7416 def struct_fields; FIELDS; end |
#validate ⇒ Object
7418 7419 7420 7421 7422 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 7418 def validate unless @category.nil? || ::J0_a_e_a_b_mg::VALID_VALUES.include?(@category) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field category!') end end |