Class: TranscribeMe::API::Recordings

Inherits:
Object
  • Object
show all
Defined in:
lib/transcribeme/api/recordings.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(session_id, client) ⇒ Recordings

Returns a new instance of Recordings.



8
9
10
# File 'lib/transcribeme/api/recordings.rb', line 8

def initialize(session_id, client)
  @session_id, @client = session_id, client
end

Instance Attribute Details

#listObject (readonly)

Returns the value of attribute list.



6
7
8
# File 'lib/transcribeme/api/recordings.rb', line 6

def list
  @list
end

Instance Method Details

#get_list!Object



12
13
14
15
# File 'lib/transcribeme/api/recordings.rb', line 12

def get_list!
  response = @client.call :get_customer_recordings, xml: xml
  @list = response.body[:get_customer_recordings_response][:get_customer_recordings_result][:recording_info]
end