Class: ContactCalendarEvent

Inherits:
Object
  • Object
show all
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 => ::J0_a_e_a_b_s8},
  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_fieldsObject



16309
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16309

def struct_fields; FIELDS; end

#validateObject



16311
16312
16313
16314
16315
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16311

def validate
  unless @state.nil? || ::J0_a_e_a_b_s8::VALID_VALUES.include?(@state)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!')
  end
end