Class: RemoveProductFromSubscriptionSlotResponse

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

RESULT =
1
FIELDS =
{
  RESULT => {:type => ::Thrift::Types::I32, :name => 'result', :enum_class => ::P0_a_a_b_a_a_r3}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



10685
10686
10687
10688
10689
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 10685

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