Class: Twilio::REST::Iam::V1::GetApiKeysInstance

Inherits:
Twilio::REST::InstanceResource show all
Defined in:
lib/twilio-ruby/rest/iam/v1/get_api_keys.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ GetApiKeysInstance

Initialize the GetApiKeysInstance

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 GetApiKeys resource.

  • sid (String)

    The SID of the Call resource to fetch.



173
174
175
176
177
178
179
180
181
182
183
# File 'lib/twilio-ruby/rest/iam/v1/get_api_keys.rb', line 173

def initialize(version, payload )
    super(version)
    
    # Marshaled Properties
    @properties = { 
        'sid' => payload['sid'],
        'friendly_name' => payload['friendly_name'],
        'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
        'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
    }
end

Instance Method Details

#date_createdTime

Returns The date and time in GMT that the resource was created specified in [RFC 2822](www.ietf.org/rfc/rfc2822.txt) format.

Returns:



200
201
202
# File 'lib/twilio-ruby/rest/iam/v1/get_api_keys.rb', line 200

def date_created
    @properties['date_created']
end

#date_updatedTime

Returns The date and time in GMT that the resource was last updated specified in [RFC 2822](www.ietf.org/rfc/rfc2822.txt) format.

Returns:



206
207
208
# File 'lib/twilio-ruby/rest/iam/v1/get_api_keys.rb', line 206

def date_updated
    @properties['date_updated']
end

#friendly_nameString

Returns The string that you assigned to describe the resource.

Returns:

  • (String)

    The string that you assigned to describe the resource.



194
195
196
# File 'lib/twilio-ruby/rest/iam/v1/get_api_keys.rb', line 194

def friendly_name
    @properties['friendly_name']
end

#inspectObject

Provide a detailed, user friendly representation



218
219
220
# File 'lib/twilio-ruby/rest/iam/v1/get_api_keys.rb', line 218

def inspect
    "<Twilio.Iam.V1.GetApiKeysInstance>"
end

#sidString

Returns The unique string that we created to identify the Key resource.

Returns:

  • (String)

    The unique string that we created to identify the Key resource.



188
189
190
# File 'lib/twilio-ruby/rest/iam/v1/get_api_keys.rb', line 188

def sid
    @properties['sid']
end

#to_sObject

Provide a user friendly representation



212
213
214
# File 'lib/twilio-ruby/rest/iam/v1/get_api_keys.rb', line 212

def to_s
    "<Twilio.Iam.V1.GetApiKeysInstance>"
end