Class: Appwrite::Models::BillingPlanSupportedAddons

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(baa:, premium_geo_db:, premium_geo_db_org:) ⇒ BillingPlanSupportedAddons

Returns a new instance of BillingPlanSupportedAddons.



10
11
12
13
14
15
16
17
18
# File 'lib/appwrite/models/billing_plan_supported_addons.rb', line 10

def initialize(
    baa:,
    premium_geo_db:,
    premium_geo_db_org:
)
    @baa = baa
    @premium_geo_db = premium_geo_db
    @premium_geo_db_org = premium_geo_db_org
end

Instance Attribute Details

#baaObject (readonly)

Returns the value of attribute baa.



6
7
8
# File 'lib/appwrite/models/billing_plan_supported_addons.rb', line 6

def baa
  @baa
end

#premium_geo_dbObject (readonly)

Returns the value of attribute premium_geo_db.



7
8
9
# File 'lib/appwrite/models/billing_plan_supported_addons.rb', line 7

def premium_geo_db
  @premium_geo_db
end

#premium_geo_db_orgObject (readonly)

Returns the value of attribute premium_geo_db_org.



8
9
10
# File 'lib/appwrite/models/billing_plan_supported_addons.rb', line 8

def premium_geo_db_org
  @premium_geo_db_org
end

Class Method Details

.from(map:) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/appwrite/models/billing_plan_supported_addons.rb', line 20

def self.from(map:)
    BillingPlanSupportedAddons.new(
        baa: map["baa"],
        premium_geo_db: map["premiumGeoDB"],
        premium_geo_db_org: map["premiumGeoDBOrg"]
    )
end

Instance Method Details

#to_mapObject



28
29
30
31
32
33
34
# File 'lib/appwrite/models/billing_plan_supported_addons.rb', line 28

def to_map
    {
        "baa": @baa,
        "premiumGeoDB": @premium_geo_db,
        "premiumGeoDBOrg": @premium_geo_db_org
    }
end