Class: Twilio::REST::Lookups::V2::RateLimitInstance

Inherits:
InstanceResource show all
Defined in:
lib/twilio-ruby/rest/lookups/v2/rate_limit.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ RateLimitInstance

Initialize the RateLimitInstance

Parameters:

  • version (Version) —

    Version that contains the resource

  • payload (Hash) —

    payload that contains response from Twilio

  • account_sid (String) —

    The SID of the Account that created this RateLimit resource.

  • sid (String) —

    The SID of the Call resource to fetch.



137
138
139
140
141
142
143
144
145
# File 'lib/twilio-ruby/rest/lookups/v2/rate_limit.rb', line 137

def initialize(version, payload )
    super(version)
    
    
    # Marshaled Properties
    @properties = { 
        'rate_limits' => payload['rate_limits'],
    }
end

Instance Method Details

#inspect ⇒ Object

Provide a detailed, user friendly representation



162
163
164
# File 'lib/twilio-ruby/rest/lookups/v2/rate_limit.rb', line 162

def inspect
    "<Twilio.Lookups.V2.RateLimitInstance>"
end

#rate_limits ⇒ Array<RateLimitResponse>

Returns:

  • (Array<RateLimitResponse>)


150
151
152
# File 'lib/twilio-ruby/rest/lookups/v2/rate_limit.rb', line 150

def rate_limits
    @properties['rate_limits']
end

#to_s ⇒ Object

Provide a user friendly representation



156
157
158
# File 'lib/twilio-ruby/rest/lookups/v2/rate_limit.rb', line 156

def to_s
    "<Twilio.Lookups.V2.RateLimitInstance>"
end