Class: PayLane::Product

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

Instance Method Summary collapse

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

#descriptionObject



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