Class: WiMP::Gen::Category
- Inherits:
-
Object
- Object
- WiMP::Gen::Category
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/services_types.rb
Constant Summary collapse
- ID =
1
- NAME =
2
- LASTUPDATED =
8
- CONTENTTYPE =
9
- DESC =
10
- HASPRODUCTDESCRIPTIONS =
11
- IMAGEURL =
12
- FIELDS =
{ ID => {:type => ::Thrift::Types::I32, :name => 'id'}, NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true}, LASTUPDATED => {:type => ::Thrift::Types::I64, :name => 'lastUpdated'}, CONTENTTYPE => {:type => ::Thrift::Types::I32, :name => 'contentType'}, DESC => {:type => ::Thrift::Types::STRING, :name => 'desc', :optional => true}, HASPRODUCTDESCRIPTIONS => {:type => ::Thrift::Types::BOOL, :name => 'hasProductDescriptions'}, IMAGEURL => {:type => ::Thrift::Types::STRING, :name => 'imageURL', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
823 |
# File 'lib/gen/services_types.rb', line 823 def struct_fields; FIELDS; end |
#validate ⇒ Object
825 826 827 828 829 830 |
# File 'lib/gen/services_types.rb', line 825 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field lastUpdated is unset!') unless @lastUpdated raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field contentType is unset!') unless @contentType raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field hasProductDescriptions is unset!') if @hasProductDescriptions.nil? end |