Class: NSClient::ProductPrice

Inherits:
Object
  • Object
show all
Defined in:
lib/ns_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



210
211
212
# File 'lib/ns_client.rb', line 210

def amount
  @amount
end

#discountObject

Returns the value of attribute discount.



210
211
212
# File 'lib/ns_client.rb', line 210

def discount
  @discount
end

#train_classObject

Returns the value of attribute train_class.



210
211
212
# File 'lib/ns_client.rb', line 210

def train_class
  @train_class
end

Instance Method Details

#typeObject



216
217
218
# File 'lib/ns_client.rb', line 216

def type
  DISCOUNT_MAP.fetch(discount, discount)
end