Sha256: 92764328042d73bf4de7579b74793f6d28db9be208e09d5a7ebf493e1bd1821b

Contents?: true

Size: 746 Bytes

Versions: 1

Compression:

Stored size: 746 Bytes

Contents

module Skydrive
  # The file object
  class File < Skydrive::Object

    # The file size
    # @return [String]
    def size
      object["size"]      
    end

    # The number of comments associated with the file
    # @return [Integer]
    def comments_count
      object["comments_count"]
    end

    # A value that indicates whether comments are enabled for the file
    # @return [Boolean]
    def comments_enabled
      object["comments_enabled"]
    end

    # A value that indicates whether this file can be embedded
    # @return [Boolean]
    def is_embeddable
      object["is_embeddable"]
    end

    # The URL to use to download the file from SkyDrive
    # @return [String]
    def source
      object["source"]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
skydrive-0.0.1 lib/skydrive/file.rb