Class: SirvRestApi::PlanPrice
- Inherits:
-
Object
- Object
- SirvRestApi::PlanPrice
- Defined in:
- lib/sirv_rest_api/models.rb
Overview
Plan price
Instance Attribute Summary collapse
-
#month ⇒ Object
Returns the value of attribute month.
-
#quarter ⇒ Object
Returns the value of attribute quarter.
-
#year ⇒ Object
Returns the value of attribute year.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ PlanPrice
constructor
A new instance of PlanPrice.
Constructor Details
#initialize(data = {}) ⇒ PlanPrice
Returns a new instance of PlanPrice.
83 84 85 86 87 |
# File 'lib/sirv_rest_api/models.rb', line 83 def initialize(data = {}) @month = data["month"] @year = data["year"] @quarter = data["quarter"] end |
Instance Attribute Details
#month ⇒ Object
Returns the value of attribute month.
81 82 83 |
# File 'lib/sirv_rest_api/models.rb', line 81 def month @month end |
#quarter ⇒ Object
Returns the value of attribute quarter.
81 82 83 |
# File 'lib/sirv_rest_api/models.rb', line 81 def quarter @quarter end |
#year ⇒ Object
Returns the value of attribute year.
81 82 83 |
# File 'lib/sirv_rest_api/models.rb', line 81 def year @year end |