Class: TranscribeMe::API::Recordings
- Inherits:
-
Object
- Object
- TranscribeMe::API::Recordings
- Defined in:
- lib/transcribeme/api/recordings.rb
Instance Attribute Summary collapse
-
#list ⇒ Object
readonly
Returns the value of attribute list.
Instance Method Summary collapse
- #get_list! ⇒ Object
-
#initialize(session_id, client) ⇒ Recordings
constructor
A new instance of Recordings.
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
#list ⇒ Object (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 |