Class: MessageBird::Voice::CallLegRecording

Inherits:
Base
  • Object
show all
Defined in:
lib/messagebird/voice/call_leg_recording.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods inherited from Base

#initialize, #map_hash_elements_to_self, #value_to_time

Constructor Details

This class inherits a constructor from MessageBird::Voice::Base

Instance Attribute Details

further processed attributes for convenience



13
14
15
# File 'lib/messagebird/voice/call_leg_recording.rb', line 13

def _links
  @_links
end

#created_atObject

Returns the value of attribute created_at.



10
11
12
# File 'lib/messagebird/voice/call_leg_recording.rb', line 10

def created_at
  @created_at
end

#durationObject

default attributes from the API



9
10
11
# File 'lib/messagebird/voice/call_leg_recording.rb', line 9

def duration
  @duration
end

#formatObject

default attributes from the API



9
10
11
# File 'lib/messagebird/voice/call_leg_recording.rb', line 9

def format
  @format
end

#idObject

default attributes from the API



9
10
11
# File 'lib/messagebird/voice/call_leg_recording.rb', line 9

def id
  @id
end

#leg_idObject

default attributes from the API



9
10
11
# File 'lib/messagebird/voice/call_leg_recording.rb', line 9

def leg_id
  @leg_id
end

#statusObject

default attributes from the API



9
10
11
# File 'lib/messagebird/voice/call_leg_recording.rb', line 9

def status
  @status
end

#typeObject

default attributes from the API



9
10
11
# File 'lib/messagebird/voice/call_leg_recording.rb', line 9

def type
  @type
end

#updated_atObject

Returns the value of attribute updated_at.



10
11
12
# File 'lib/messagebird/voice/call_leg_recording.rb', line 10

def updated_at
  @updated_at
end

#uriObject

further processed attributes for convenience



13
14
15
# File 'lib/messagebird/voice/call_leg_recording.rb', line 13

def uri
  @uri
end

Instance Method Details

Grab the URI to the downloadable file and provide it as a direct attribute



16
17
18
# File 'lib/messagebird/voice/call_leg_recording.rb', line 16

def handle_links(links_object)
  @uri = links_object['file']
end