Class: Appwrite::Models::BillingPlanAddon
- Inherits:
-
Object
- Object
- Appwrite::Models::BillingPlanAddon
- Defined in:
- lib/appwrite/models/billing_plan_addon.rb
Instance Attribute Summary collapse
-
#projects ⇒ Object
readonly
Returns the value of attribute projects.
-
#seats ⇒ Object
readonly
Returns the value of attribute seats.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(seats:, projects:) ⇒ BillingPlanAddon
constructor
A new instance of BillingPlanAddon.
- #to_map ⇒ Object
Constructor Details
#initialize(seats:, projects:) ⇒ BillingPlanAddon
Returns a new instance of BillingPlanAddon.
9 10 11 12 13 14 15 |
# File 'lib/appwrite/models/billing_plan_addon.rb', line 9 def initialize( seats:, projects: ) @seats = seats @projects = projects end |
Instance Attribute Details
#projects ⇒ Object (readonly)
Returns the value of attribute projects.
7 8 9 |
# File 'lib/appwrite/models/billing_plan_addon.rb', line 7 def projects @projects end |
#seats ⇒ Object (readonly)
Returns the value of attribute seats.
6 7 8 |
# File 'lib/appwrite/models/billing_plan_addon.rb', line 6 def seats @seats end |
Class Method Details
.from(map:) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/appwrite/models/billing_plan_addon.rb', line 17 def self.from(map:) BillingPlanAddon.new( seats: BillingPlanAddonDetails.from(map: map["seats"]), projects: BillingPlanAddonDetails.from(map: map["projects"]) ) end |
Instance Method Details
#to_map ⇒ Object
24 25 26 27 28 29 |
# File 'lib/appwrite/models/billing_plan_addon.rb', line 24 def to_map { "seats": @seats.to_map, "projects": @projects.to_map } end |