Class: Pinter::Product

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/pinter/product.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Base

#set_instance_variables_from_hash

Constructor Details

#initialize(attributes) ⇒ Product

Returns a new instance of Product.



8
9
10
# File 'lib/pinter/product.rb', line 8

def initialize(attributes)
  set_instance_variables_from_hash attributes
end

Instance Attribute Details

#created_atObject (readonly)

Returns the value of attribute created_at.



6
7
8
# File 'lib/pinter/product.rb', line 6

def created_at
  @created_at
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/pinter/product.rb', line 6

def name
  @name
end

#price_in_centsObject (readonly)

Returns the value of attribute price_in_cents.



6
7
8
# File 'lib/pinter/product.rb', line 6

def price_in_cents
  @price_in_cents
end

#recurringObject (readonly)

Returns the value of attribute recurring.



6
7
8
# File 'lib/pinter/product.rb', line 6

def recurring
  @recurring
end