Class: PromotionInfo

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

PROMOTIONTYPE =
1
BUDDYINFO =
51
PROMOTIONDETAIL =
2
FIELDS =
{
  PROMOTIONTYPE => {:type => ::Thrift::Types::I32, :name => 'promotionType', :enum_class => ::J0_a_a_b_a_a_l2},
  BUDDYINFO => {:type => ::Thrift::Types::STRUCT, :name => 'buddyInfo', :class => ::PromotionBuddyInfo},
  PROMOTIONDETAIL => {:type => ::Thrift::Types::STRUCT, :name => 'promotionDetail', :class => ::PromotionDetail}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



7520
7521
7522
7523
7524
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 7520

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