Class: Skydrive::Audio
Overview
A user’s audio file in SkyDrive.
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
-
#album ⇒ String
The audio’s album name.
-
#album_artist ⇒ String
The artist name of the audio’s album.
-
#artist ⇒ String
The audio’s artist name.
-
#duration ⇒ Integer
The audio’s playing time, in milliseconds.
-
#genre ⇒ String
The audio’s genre.
-
#picture ⇒ String
A URL to view the audio’s picture on SkyDrive.
-
#title ⇒ String
The audio’s title.
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
#album ⇒ String
The audio’s album name
19 20 21 |
# File 'lib/skydrive/audio.rb', line 19 def album object["album"] end |
#album_artist ⇒ String
The artist name of the audio’s album
25 26 27 |
# File 'lib/skydrive/audio.rb', line 25 def album_artist object["album_artist"] end |
#artist ⇒ String
The audio’s artist name
13 14 15 |
# File 'lib/skydrive/audio.rb', line 13 def artist object["artist"] end |
#duration ⇒ Integer
The audio’s playing time, in milliseconds
37 38 39 |
# File 'lib/skydrive/audio.rb', line 37 def duration object["duration"] end |
#genre ⇒ String
The audio’s genre
31 32 33 |
# File 'lib/skydrive/audio.rb', line 31 def genre object["genre"] end |
#picture ⇒ String
A URL to view the audio’s picture on SkyDrive
43 44 45 |
# File 'lib/skydrive/audio.rb', line 43 def picture object["picture"] end |
#title ⇒ String
The audio’s title
7 8 9 |
# File 'lib/skydrive/audio.rb', line 7 def title object["title"] end |