Class: Ebisu::Point
- Inherits:
-
Object
- Object
- Ebisu::Point
- Defined in:
- lib/ebisu/models/point.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#times ⇒ Object
Returns the value of attribute times.
Instance Method Summary collapse
-
#initialize(point) ⇒ Point
constructor
A new instance of Point.
Constructor Details
#initialize(point) ⇒ Point
Returns a new instance of Point.
12 13 14 15 |
# File 'lib/ebisu/models/point.rb', line 12 def initialize(point) @amount = point.dig('amount').to_i @times = point.dig('times').to_i end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
7 8 9 |
# File 'lib/ebisu/models/point.rb', line 7 def amount @amount end |
#times ⇒ Object
Returns the value of attribute times.
10 11 12 |
# File 'lib/ebisu/models/point.rb', line 10 def times @times end |