Class: GetStream::Generated::Models::BudgetsResponse
- Defined in:
- lib/getstream_ruby/generated/models/budgets_response.rb
Instance Attribute Summary collapse
-
#all ⇒ Hash<String, BudgetStatusResponse>
Map of endpoint budgets shared by all platforms.
-
#android ⇒ Hash<String, BudgetStatusResponse>
Map of endpoint budgets for the Android platform.
-
#ios ⇒ Hash<String, BudgetStatusResponse>
Map of endpoint budgets for the iOS platform.
-
#server_side ⇒ Hash<String, BudgetStatusResponse>
Map of endpoint budgets for the server-side platform.
-
#unity ⇒ Hash<String, BudgetStatusResponse>
Map of endpoint budgets for the Unity platform.
-
#unity_console ⇒ Hash<String, BudgetStatusResponse>
Map of endpoint budgets for the Unity console platform.
-
#unity_desktop ⇒ Hash<String, BudgetStatusResponse>
Map of endpoint budgets for the Unity desktop platform.
-
#web ⇒ Hash<String, BudgetStatusResponse>
Map of endpoint budgets for the web platform.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ BudgetsResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ BudgetsResponse
Initialize with attributes
38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/getstream_ruby/generated/models/budgets_response.rb', line 38 def initialize(attributes = {}) super(attributes) @all = attributes.fetch(:all) { attributes.fetch('all', nil) } @android = attributes.fetch(:android) { attributes.fetch('android', nil) } @ios = attributes.fetch(:ios) { attributes.fetch('ios', nil) } @server_side = attributes.fetch(:server_side) { attributes.fetch('server_side', nil) } @unity = attributes.fetch(:unity) { attributes.fetch('unity', nil) } @unity_console = attributes.fetch(:unity_console) { attributes.fetch('unity_console', nil) } @unity_desktop = attributes.fetch(:unity_desktop) { attributes.fetch('unity_desktop', nil) } @web = attributes.fetch(:web) { attributes.fetch('web', nil) } end |
Instance Attribute Details
#all ⇒ Hash<String, BudgetStatusResponse>
Returns Map of endpoint budgets shared by all platforms. Set when budgets are not tracked per platform.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/budgets_response.rb', line 14 def all @all end |
#android ⇒ Hash<String, BudgetStatusResponse>
Returns Map of endpoint budgets for the Android platform.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/budgets_response.rb', line 17 def android @android end |
#ios ⇒ Hash<String, BudgetStatusResponse>
Returns Map of endpoint budgets for the iOS platform.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/budgets_response.rb', line 20 def ios @ios end |
#server_side ⇒ Hash<String, BudgetStatusResponse>
Returns Map of endpoint budgets for the server-side platform.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/budgets_response.rb', line 23 def server_side @server_side end |
#unity ⇒ Hash<String, BudgetStatusResponse>
Returns Map of endpoint budgets for the Unity platform.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/budgets_response.rb', line 26 def unity @unity end |
#unity_console ⇒ Hash<String, BudgetStatusResponse>
Returns Map of endpoint budgets for the Unity console platform.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/budgets_response.rb', line 29 def unity_console @unity_console end |
#unity_desktop ⇒ Hash<String, BudgetStatusResponse>
Returns Map of endpoint budgets for the Unity desktop platform.
32 33 34 |
# File 'lib/getstream_ruby/generated/models/budgets_response.rb', line 32 def unity_desktop @unity_desktop end |
#web ⇒ Hash<String, BudgetStatusResponse>
Returns Map of endpoint budgets for the web platform.
35 36 37 |
# File 'lib/getstream_ruby/generated/models/budgets_response.rb', line 35 def web @web end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/getstream_ruby/generated/models/budgets_response.rb', line 51 def self.json_field_mappings { all: 'all', android: 'android', ios: 'ios', server_side: 'server_side', unity: 'unity', unity_console: 'unity_console', unity_desktop: 'unity_desktop', web: 'web' } end |