Class: Appwrite::Models::BillingPlanAddonDetails
- Inherits:
-
Object
- Object
- Appwrite::Models::BillingPlanAddonDetails
- Defined in:
- lib/appwrite/models/billing_plan_addon_details.rb
Instance Attribute Summary collapse
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#invoice_desc ⇒ Object
readonly
Returns the value of attribute invoice_desc.
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#plan_included ⇒ Object
readonly
Returns the value of attribute plan_included.
-
#price ⇒ Object
readonly
Returns the value of attribute price.
-
#supported ⇒ Object
readonly
Returns the value of attribute supported.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(supported:, plan_included:, limit:, type:, currency:, price:, value:, invoice_desc:) ⇒ BillingPlanAddonDetails
constructor
A new instance of BillingPlanAddonDetails.
- #to_map ⇒ Object
Constructor Details
#initialize(supported:, plan_included:, limit:, type:, currency:, price:, value:, invoice_desc:) ⇒ BillingPlanAddonDetails
Returns a new instance of BillingPlanAddonDetails.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/appwrite/models/billing_plan_addon_details.rb', line 15 def initialize( supported:, plan_included:, limit:, type:, currency:, price:, value:, invoice_desc: ) @supported = supported @plan_included = plan_included @limit = limit @type = type @currency = currency @price = price @value = value @invoice_desc = invoice_desc end |
Instance Attribute Details
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
10 11 12 |
# File 'lib/appwrite/models/billing_plan_addon_details.rb', line 10 def currency @currency end |
#invoice_desc ⇒ Object (readonly)
Returns the value of attribute invoice_desc.
13 14 15 |
# File 'lib/appwrite/models/billing_plan_addon_details.rb', line 13 def invoice_desc @invoice_desc end |
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
8 9 10 |
# File 'lib/appwrite/models/billing_plan_addon_details.rb', line 8 def limit @limit end |
#plan_included ⇒ Object (readonly)
Returns the value of attribute plan_included.
7 8 9 |
# File 'lib/appwrite/models/billing_plan_addon_details.rb', line 7 def plan_included @plan_included end |
#price ⇒ Object (readonly)
Returns the value of attribute price.
11 12 13 |
# File 'lib/appwrite/models/billing_plan_addon_details.rb', line 11 def price @price end |
#supported ⇒ Object (readonly)
Returns the value of attribute supported.
6 7 8 |
# File 'lib/appwrite/models/billing_plan_addon_details.rb', line 6 def supported @supported end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
9 10 11 |
# File 'lib/appwrite/models/billing_plan_addon_details.rb', line 9 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
12 13 14 |
# File 'lib/appwrite/models/billing_plan_addon_details.rb', line 12 def value @value end |
Class Method Details
.from(map:) ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/appwrite/models/billing_plan_addon_details.rb', line 35 def self.from(map:) BillingPlanAddonDetails.new( supported: map["supported"], plan_included: map["planIncluded"], limit: map["limit"], type: map["type"], currency: map["currency"], price: map["price"], value: map["value"], invoice_desc: map["invoiceDesc"] ) end |
Instance Method Details
#to_map ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/appwrite/models/billing_plan_addon_details.rb', line 48 def to_map { "supported": @supported, "planIncluded": @plan_included, "limit": @limit, "type": @type, "currency": @currency, "price": @price, "value": @value, "invoiceDesc": @invoice_desc } end |