Class: Appwrite::Models::DedicatedDatabaseSpecificationList
- Inherits:
-
Object
- Object
- Appwrite::Models::DedicatedDatabaseSpecificationList
- Defined in:
- lib/appwrite/models/dedicated_database_specification_list.rb
Instance Attribute Summary collapse
-
#pricing ⇒ Object
readonly
Returns the value of attribute pricing.
-
#specifications ⇒ Object
readonly
Returns the value of attribute specifications.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(specifications:, total:, pricing:) ⇒ DedicatedDatabaseSpecificationList
constructor
A new instance of DedicatedDatabaseSpecificationList.
- #to_map ⇒ Object
Constructor Details
#initialize(specifications:, total:, pricing:) ⇒ DedicatedDatabaseSpecificationList
Returns a new instance of DedicatedDatabaseSpecificationList.
10 11 12 13 14 15 16 17 18 |
# File 'lib/appwrite/models/dedicated_database_specification_list.rb', line 10 def initialize( specifications:, total:, pricing: ) @specifications = specifications @total = total @pricing = pricing end |
Instance Attribute Details
#pricing ⇒ Object (readonly)
Returns the value of attribute pricing.
8 9 10 |
# File 'lib/appwrite/models/dedicated_database_specification_list.rb', line 8 def pricing @pricing end |
#specifications ⇒ Object (readonly)
Returns the value of attribute specifications.
6 7 8 |
# File 'lib/appwrite/models/dedicated_database_specification_list.rb', line 6 def specifications @specifications end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
7 8 9 |
# File 'lib/appwrite/models/dedicated_database_specification_list.rb', line 7 def total @total end |
Class Method Details
.from(map:) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/appwrite/models/dedicated_database_specification_list.rb', line 20 def self.from(map:) DedicatedDatabaseSpecificationList.new( specifications: map["specifications"].map { |it| DedicatedDatabaseSpecification.from(map: it) }, total: map["total"], pricing: DedicatedDatabaseSpecificationPricing.from(map: map["pricing"]) ) end |
Instance Method Details
#to_map ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/appwrite/models/dedicated_database_specification_list.rb', line 28 def to_map { "specifications": @specifications.map { |it| it.to_map }, "total": @total, "pricing": @pricing.to_map } end |