class Plivo::Resources::Media

Public Class Methods

new(client, options = nil) click to toggle source
Calls superclass method Plivo::Base::Resource::new
# File lib/plivo/resources/media.rb, line 5
def initialize(client, options = nil)
  @_name = 'Media'
  @_identifier_string = 'media_id'
  super
end

Public Instance Methods

to_s() click to toggle source
# File lib/plivo/resources/media.rb, line 11
def to_s
  {
    content_type: @content_type,
    file_name: @file_name,
    api_id: @api_id,
    media_id: @media_id,
    size: @size,
    upload_time: @upload_time,
    url: @url
  }.to_s
end