Class: Stat::Query::Tag

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/querymodel_types.rb

Constant Summary collapse

NAME =
1
POSITION =
2
COVER =
3
FIELDS =
{
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
  POSITION => {:type => ::Thrift::Types::I32, :name => 'position'},
  COVER => {:type => ::Thrift::Types::STRING, :name => 'cover', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



95
# File 'lib/querymodel_types.rb', line 95

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


97
98
99
100
# File 'lib/querymodel_types.rb', line 97

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field position is unset!') unless @position
end