Sha256: c26585bf24449975473401291ecc68e1fd75ff15bf7f462e58794c224a36b7e0

Contents?: true

Size: 847 Bytes

Versions: 4

Compression:

Stored size: 847 Bytes

Contents

module Skydrive
  # A user's audio file in SkyDrive.
  class Audio < Skydrive::File

    # The audio's title
    # @return [String]
    def title
      object["title"]
    end

    # The audio's artist name
    # @return [String]
    def artist
      object["artist"]
    end

    # The audio's album name
    # @return [String]
    def album
      object["album"]
    end

    # The artist name of the audio's album
    # @return [String]
    def album_artist
      object["album_artist"]
    end

    # The audio's genre
    # @return [String]
    def genre
      object["genre"]
    end

    # The audio's playing time, in milliseconds
    # @return [Integer]
    def duration
      object["duration"]
    end

    # A URL to view the audio's picture on SkyDrive
    # @return [String]
    def picture
      object["picture"]
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
skydrive-1.2.0 lib/skydrive/audio.rb
skydrive-1.1.0 lib/skydrive/audio.rb
skydrive-1.0.0 lib/skydrive/audio.rb
skydrive-0.1.5 lib/skydrive/audio.rb