Class: GetStream::Generated::Models::GetRateLimitsResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/get_rate_limits_response.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #inspect, omit_empty_fields, #to_h, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ GetRateLimitsResponse

Initialize with attributes



41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/getstream_ruby/generated/models/get_rate_limits_response.rb', line 41

def initialize(attributes = {})
  super(attributes)
  @duration = attributes.fetch(:duration) { attributes.fetch('duration', nil) }
  @android = attributes.fetch(:android) { attributes.fetch('android', nil) }
  @budgets = attributes.fetch(:budgets) { attributes.fetch('budgets', 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

#android ⇒ Hash<String, LimitInfoResponse>

Returns Map of endpoint rate limits for the Android platform.

Returns:

  • (Hash<String, LimitInfoResponse>) —

    Map of endpoint rate limits for the Android platform



17
18
19
# File 'lib/getstream_ruby/generated/models/get_rate_limits_response.rb', line 17

def android
  @android
end

#budgets ⇒ BudgetsResponse

Returns:



20
21
22
# File 'lib/getstream_ruby/generated/models/get_rate_limits_response.rb', line 20

def budgets
  @budgets
end

#duration ⇒ String

Returns:

  • (String)


14
15
16
# File 'lib/getstream_ruby/generated/models/get_rate_limits_response.rb', line 14

def duration
  @duration
end

#ios ⇒ Hash<String, LimitInfoResponse>

Returns Map of endpoint rate limits for the iOS platform.

Returns:

  • (Hash<String, LimitInfoResponse>) —

    Map of endpoint rate limits for the iOS platform



23
24
25
# File 'lib/getstream_ruby/generated/models/get_rate_limits_response.rb', line 23

def ios
  @ios
end

#server_side ⇒ Hash<String, LimitInfoResponse>

Returns Map of endpoint rate limits for the server-side platform.

Returns:

  • (Hash<String, LimitInfoResponse>) —

    Map of endpoint rate limits for the server-side platform



26
27
28
# File 'lib/getstream_ruby/generated/models/get_rate_limits_response.rb', line 26

def server_side
  @server_side
end

#unity ⇒ Hash<String, LimitInfoResponse>

Returns Map of endpoint rate limits for the Unity platform.

Returns:

  • (Hash<String, LimitInfoResponse>) —

    Map of endpoint rate limits for the Unity platform



29
30
31
# File 'lib/getstream_ruby/generated/models/get_rate_limits_response.rb', line 29

def unity
  @unity
end

#unity_console ⇒ Hash<String, LimitInfoResponse>

Returns Map of endpoint rate limits for the Unity console platform.

Returns:

  • (Hash<String, LimitInfoResponse>) —

    Map of endpoint rate limits for the Unity console platform



32
33
34
# File 'lib/getstream_ruby/generated/models/get_rate_limits_response.rb', line 32

def unity_console
  @unity_console
end

#unity_desktop ⇒ Hash<String, LimitInfoResponse>

Returns Map of endpoint rate limits for the Unity desktop platform.

Returns:

  • (Hash<String, LimitInfoResponse>) —

    Map of endpoint rate limits for the Unity desktop platform



35
36
37
# File 'lib/getstream_ruby/generated/models/get_rate_limits_response.rb', line 35

def unity_desktop
  @unity_desktop
end

#web ⇒ Hash<String, LimitInfoResponse>

Returns Map of endpoint rate limits for the web platform.

Returns:

  • (Hash<String, LimitInfoResponse>) —

    Map of endpoint rate limits for the web platform



38
39
40
# File 'lib/getstream_ruby/generated/models/get_rate_limits_response.rb', line 38

def web
  @web
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/getstream_ruby/generated/models/get_rate_limits_response.rb', line 55

def self.json_field_mappings
  {
    duration: 'duration',
    android: 'android',
    budgets: 'budgets',
    ios: 'ios',
    server_side: 'server_side',
    unity: 'unity',
    unity_console: 'unity_console',
    unity_desktop: 'unity_desktop',
    web: 'web'
  }
end