Sha256: a6eb42a5a2e616f353e21a9d054e4eace27bb2e61848725053fef141e0f60696

Contents?: true

Size: 513 Bytes

Versions: 6

Compression:

Stored size: 513 Bytes

Contents

module Skydrive
  # Contains info about tags that are associated with a photo or a video on SkyDrive
  class Tag < Skydrive::Object

    # The center of the tag's horizontal position, measured as a floating-point percentage from 0 to 100, from the left edge of the photo
    # @return [Integer]
    def x
      object["x"]
    end

    # The center of the tag's vertical position, measured as a floating-point percentage from 0 to 100, from the top edge of the photo
    def y
      object["y"]
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
skydrive-1.2.0 lib/skydrive/tag.rb
skydrive-1.1.0 lib/skydrive/tag.rb
skydrive-1.0.0 lib/skydrive/tag.rb
skydrive-0.1.5 lib/skydrive/tag.rb
skydrive-0.1.4 lib/skydrive/tag.rb
skydrive-0.1.0 lib/skydrive/tag.rb