Class: Skydrive::Tag

Inherits:
Object show all
Defined in:
lib/skydrive/tag.rb

Overview

Contains info about tags that are associated with a photo or a video on SkyDrive

Instance Attribute Summary

Attributes inherited from Object

#client, #object

Instance Method Summary collapse

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

#xInteger

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

Returns:

  • (Integer)


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

def x
  object["x"]
end

#yObject

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



12
13
14
# File 'lib/skydrive/tag.rb', line 12

def y
  object["y"]
end