Class: PayLane::Product
- Inherits:
-
Object
- Object
- PayLane::Product
- Defined in:
- lib/paylane/product.rb
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize(attributes) ⇒ Product
constructor
A new instance of Product.
Constructor Details
#initialize(attributes) ⇒ Product
Returns a new instance of Product.
3 4 5 |
# File 'lib/paylane/product.rb', line 3 def initialize(attributes) @attributes = attributes end |
Instance Method Details
#description ⇒ Object
7 8 9 10 |
# File 'lib/paylane/product.rb', line 7 def description attributes = Array(@attributes) << Time.now.getutc attributes.map { |a| "[#{a}]" }.join '' end |