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.



104
105
106
107
108
109
110
111
# File 'lib/twilio-ruby/rest/lookups/v2/rate_limit.rb', line 104

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



128
129
130
# File 'lib/twilio-ruby/rest/lookups/v2/rate_limit.rb', line 128

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

#rate_limitsArray<RateLimitResponse>

Returns:

  • (Array<RateLimitResponse>)


116
117
118
# File 'lib/twilio-ruby/rest/lookups/v2/rate_limit.rb', line 116

def rate_limits
    @properties['rate_limits']
end

#to_sObject

Provide a user friendly representation



122
123
124
# File 'lib/twilio-ruby/rest/lookups/v2/rate_limit.rb', line 122

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