Class: ContactCalendarEvent
- Inherits:
-
Object
- Object
- ContactCalendarEvent
- 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
- ID =
1
- STATE =
2
- YEAR =
3
- MONTH =
4
- DAY =
5
- FIELDS =
{ ID => {:type => ::Thrift::Types::STRING, :name => 'id'}, STATE => {:type => ::Thrift::Types::I32, :name => 'state', :enum_class => ::P0_a_e_a_b_t8}, YEAR => {:type => ::Thrift::Types::I32, :name => 'year', :optional => true}, MONTH => {:type => ::Thrift::Types::I32, :name => 'month', :optional => true}, DAY => {:type => ::Thrift::Types::I32, :name => 'day', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
17347 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 17347 def struct_fields; FIELDS; end |
#validate ⇒ Object
17349 17350 17351 17352 17353 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 17349 def validate unless @state.nil? || ::P0_a_e_a_b_t8::VALID_VALUES.include?(@state) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!') end end |