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 => ::P0_a_a_b_a_a_f2},
  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



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

def struct_fields; FIELDS; end

#validateObject



9084
9085
9086
9087
9088
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9084

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