Class: GetStream::Generated::Models::GetFeedsRateLimitsResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::GetFeedsRateLimitsResponse
- Defined in:
- lib/getstream_ruby/generated/models/get_feeds_rate_limits_response.rb
Instance Attribute Summary collapse
-
#android ⇒ Hash<String, LimitInfoResponse>
Rate limits for Android platform (endpoint name -> limit info).
- #duration ⇒ String
-
#ios ⇒ Hash<String, LimitInfoResponse>
Rate limits for iOS platform (endpoint name -> limit info).
-
#server_side ⇒ Hash<String, LimitInfoResponse>
Rate limits for server-side platform (endpoint name -> limit info).
-
#unity ⇒ Hash<String, LimitInfoResponse>
Rate limits for Unity platform (endpoint name -> limit info).
-
#unity_console ⇒ Hash<String, LimitInfoResponse>
Rate limits for Unity console platform (endpoint name -> limit info).
-
#unity_desktop ⇒ Hash<String, LimitInfoResponse>
Rate limits for Unity desktop platform (endpoint name -> limit info).
-
#web ⇒ Hash<String, LimitInfoResponse>
Rate limits for Web platform (endpoint name -> limit info).
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ GetFeedsRateLimitsResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ GetFeedsRateLimitsResponse
Initialize with attributes
38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/getstream_ruby/generated/models/get_feeds_rate_limits_response.rb', line 38 def initialize(attributes = {}) super(attributes) @duration = attributes[:duration] || attributes['duration'] @android = attributes[:android] || attributes['android'] || nil @ios = attributes[:ios] || attributes['ios'] || nil @server_side = attributes[:server_side] || attributes['server_side'] || nil @unity = attributes[:unity] || attributes['unity'] || nil @unity_console = attributes[:unity_console] || attributes['unity_console'] || nil @unity_desktop = attributes[:unity_desktop] || attributes['unity_desktop'] || nil @web = attributes[:web] || attributes['web'] || nil end |
Instance Attribute Details
#android ⇒ Hash<String, LimitInfoResponse>
Returns Rate limits for Android platform (endpoint name -> limit info).
17 18 19 |
# File 'lib/getstream_ruby/generated/models/get_feeds_rate_limits_response.rb', line 17 def android @android end |
#duration ⇒ String
14 15 16 |
# File 'lib/getstream_ruby/generated/models/get_feeds_rate_limits_response.rb', line 14 def duration @duration end |
#ios ⇒ Hash<String, LimitInfoResponse>
Returns Rate limits for iOS platform (endpoint name -> limit info).
20 21 22 |
# File 'lib/getstream_ruby/generated/models/get_feeds_rate_limits_response.rb', line 20 def ios @ios end |
#server_side ⇒ Hash<String, LimitInfoResponse>
Returns Rate limits for server-side platform (endpoint name -> limit info).
23 24 25 |
# File 'lib/getstream_ruby/generated/models/get_feeds_rate_limits_response.rb', line 23 def server_side @server_side end |
#unity ⇒ Hash<String, LimitInfoResponse>
Returns Rate limits for Unity platform (endpoint name -> limit info).
26 27 28 |
# File 'lib/getstream_ruby/generated/models/get_feeds_rate_limits_response.rb', line 26 def unity @unity end |
#unity_console ⇒ Hash<String, LimitInfoResponse>
Returns Rate limits for Unity console platform (endpoint name -> limit info).
29 30 31 |
# File 'lib/getstream_ruby/generated/models/get_feeds_rate_limits_response.rb', line 29 def unity_console @unity_console end |
#unity_desktop ⇒ Hash<String, LimitInfoResponse>
Returns Rate limits for Unity desktop platform (endpoint name -> limit info).
32 33 34 |
# File 'lib/getstream_ruby/generated/models/get_feeds_rate_limits_response.rb', line 32 def unity_desktop @unity_desktop end |
#web ⇒ Hash<String, LimitInfoResponse>
Returns Rate limits for Web platform (endpoint name -> limit info).
35 36 37 |
# File 'lib/getstream_ruby/generated/models/get_feeds_rate_limits_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/get_feeds_rate_limits_response.rb', line 51 def self.json_field_mappings { duration: 'duration', android: 'android', ios: 'ios', server_side: 'server_side', unity: 'unity', unity_console: 'unity_console', unity_desktop: 'unity_desktop', web: 'web' } end |