Class: SticonProperty

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

STICONIDS =
2
AVAILABLEFORPHOTOEDIT =
3
STICONRESOURCETYPE =
4
FIELDS =
{
  STICONIDS => {:type => ::Thrift::Types::LIST, :name => 'sticonIds', :element => {:type => ::Thrift::Types::STRING}},
  AVAILABLEFORPHOTOEDIT => {:type => ::Thrift::Types::BOOL, :name => 'availableForPhotoEdit'},
  STICONRESOURCETYPE => {:type => ::Thrift::Types::I32, :name => 'sticonResourceType', :enum_class => ::J0_a_a_b_a_a_l3}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



7638
7639
7640
7641
7642
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 7638

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