Class: Pinter::Product
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#price_in_cents ⇒ Object
readonly
Returns the value of attribute price_in_cents.
-
#recurring ⇒ Object
readonly
Returns the value of attribute recurring.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Product
constructor
A new instance of Product.
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_at ⇒ Object (readonly)
Returns the value of attribute created_at.
6 7 8 |
# File 'lib/pinter/product.rb', line 6 def created_at @created_at end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/pinter/product.rb', line 6 def name @name end |
#price_in_cents ⇒ Object (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 |
#recurring ⇒ Object (readonly)
Returns the value of attribute recurring.
6 7 8 |
# File 'lib/pinter/product.rb', line 6 def recurring @recurring end |