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.



196
197
198
199
200
201
202
203
204
# File 'lib/twilio-ruby/rest/lookups/v2/rate_limit.rb', line 196

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

Instance Method Details

#inspectObject

Provide a detailed, user friendly representation



221
222
223
# File 'lib/twilio-ruby/rest/lookups/v2/rate_limit.rb', line 221

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

#rate_limitsArray<RateLimitResponse>

Returns:

  • (Array<RateLimitResponse>)


209
210
211
# File 'lib/twilio-ruby/rest/lookups/v2/rate_limit.rb', line 209

def rate_limits
    @properties['rate_limits']
end

#to_sObject

Provide a user friendly representation



215
216
217
# File 'lib/twilio-ruby/rest/lookups/v2/rate_limit.rb', line 215

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