Class: Skydrive::Audio

Inherits:
File show all
Defined in:
lib/skydrive/audio.rb

Overview

A user’s audio file in SkyDrive.

Instance Attribute Summary

Attributes inherited from Object

#client, #object

Instance Method Summary collapse

Methods inherited from File

#comments_count, #comments_enabled?, #download, #download_link, #size, #source

Methods inherited from Object

#comment, #comments, #created_time, #delete, #description, #from, #id, #initialize, #is_embeddable?, #link, #name, #parent_id, #shared_with, #to_hash, #to_json, #type, #updated_time, #upload_location

Constructor Details

This class inherits a constructor from Skydrive::Object

Instance Method Details

#albumString

The audio’s album name

Returns:

  • (String)


19
20
21
# File 'lib/skydrive/audio.rb', line 19

def album
  object["album"]
end

#album_artistString

The artist name of the audio’s album

Returns:

  • (String)


25
26
27
# File 'lib/skydrive/audio.rb', line 25

def album_artist
  object["album_artist"]
end

#artistString

The audio’s artist name

Returns:

  • (String)


13
14
15
# File 'lib/skydrive/audio.rb', line 13

def artist
  object["artist"]
end

#durationInteger

The audio’s playing time, in milliseconds

Returns:

  • (Integer)


37
38
39
# File 'lib/skydrive/audio.rb', line 37

def duration
  object["duration"]
end

#genreString

The audio’s genre

Returns:

  • (String)


31
32
33
# File 'lib/skydrive/audio.rb', line 31

def genre
  object["genre"]
end

#pictureString

A URL to view the audio’s picture on SkyDrive

Returns:

  • (String)


43
44
45
# File 'lib/skydrive/audio.rb', line 43

def picture
  object["picture"]
end

#titleString

The audio’s title

Returns:

  • (String)


7
8
9
# File 'lib/skydrive/audio.rb', line 7

def title
  object["title"]
end