Class: Appwrite::Models::BillingPlanAddonDetails

Inherits:
Object
  • Object
show all
Defined in:
lib/appwrite/models/billing_plan_addon_details.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#currencyObject (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_descObject (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

#limitObject (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_includedObject (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

#priceObject (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

#supportedObject (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

#typeObject (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

#valueObject (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_mapObject



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