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