Class: SirvRestApi::BillingPlan
- Inherits:
-
Object
- Object
- SirvRestApi::BillingPlan
- Defined in:
- lib/sirv_rest_api/models.rb
Overview
Billing plan
Instance Attribute Summary collapse
-
#data_transfer_limit ⇒ Object
Returns the value of attribute data_transfer_limit.
-
#date_active ⇒ Object
Returns the value of attribute date_active.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#period ⇒ Object
Returns the value of attribute period.
-
#price ⇒ Object
Returns the value of attribute price.
-
#storage ⇒ Object
Returns the value of attribute storage.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ BillingPlan
constructor
A new instance of BillingPlan.
Constructor Details
#initialize(data = {}) ⇒ BillingPlan
Returns a new instance of BillingPlan.
94 95 96 97 98 99 100 101 102 103 |
# File 'lib/sirv_rest_api/models.rb', line 94 def initialize(data = {}) @id = data["id"] @name = data["name"] @description = data["description"] @period = data["period"] @storage = data["storage"] @data_transfer_limit = data["dataTransferLimit"] @price = data["price"] ? PlanPrice.new(data["price"]) : nil @date_active = data["dateActive"] end |
Instance Attribute Details
#data_transfer_limit ⇒ Object
Returns the value of attribute data_transfer_limit.
92 93 94 |
# File 'lib/sirv_rest_api/models.rb', line 92 def data_transfer_limit @data_transfer_limit end |
#date_active ⇒ Object
Returns the value of attribute date_active.
92 93 94 |
# File 'lib/sirv_rest_api/models.rb', line 92 def date_active @date_active end |
#description ⇒ Object
Returns the value of attribute description.
92 93 94 |
# File 'lib/sirv_rest_api/models.rb', line 92 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
92 93 94 |
# File 'lib/sirv_rest_api/models.rb', line 92 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
92 93 94 |
# File 'lib/sirv_rest_api/models.rb', line 92 def name @name end |
#period ⇒ Object
Returns the value of attribute period.
92 93 94 |
# File 'lib/sirv_rest_api/models.rb', line 92 def period @period end |
#price ⇒ Object
Returns the value of attribute price.
92 93 94 |
# File 'lib/sirv_rest_api/models.rb', line 92 def price @price end |
#storage ⇒ Object
Returns the value of attribute storage.
92 93 94 |
# File 'lib/sirv_rest_api/models.rb', line 92 def storage @storage end |