Class: AcceptOn::Plan
- Inherits:
-
Base
- Object
- Base
- AcceptOn::Plan
show all
- Defined in:
- lib/accepton/plan.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Constructor Details
This class inherits a constructor from AcceptOn::Base
Instance Attribute Details
#amount ⇒ Object
10
11
12
|
# File 'lib/accepton/plan.rb', line 10
def amount
@amount
end
|
#currency ⇒ Object
10
11
12
|
# File 'lib/accepton/plan.rb', line 10
def currency
@currency
end
|
#id ⇒ Object
10
11
12
|
# File 'lib/accepton/plan.rb', line 10
def id
@id
end
|
#name ⇒ Object
10
11
12
|
# File 'lib/accepton/plan.rb', line 10
def name
@name
end
|
#period_unit ⇒ Object
10
11
12
|
# File 'lib/accepton/plan.rb', line 10
def period_unit
@period_unit
end
|
Instance Method Details
#created_at ⇒ Time
The time the plan was created
17
18
19
|
# File 'lib/accepton/plan.rb', line 17
def created_at
Time.parse(@created_at).utc unless @created_at.nil?
end
|