Class: LatestProductsByAuthorRequest

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

PRODUCTTYPE =
1
AUTHORID =
2
LIMIT =
3
FIELDS =
{
  PRODUCTTYPE => {:type => ::Thrift::Types::I32, :name => 'productType', :enum_class => ::P0_a_a_b_a_a_t1},
  AUTHORID => {:type => ::Thrift::Types::I64, :name => 'authorId'},
  LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



11768
11769
11770
11771
11772
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 11768

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