Class: FbGraph::Tag
Instance Attribute Summary collapse
-
#created_time ⇒ Object
Returns the value of attribute created_time.
-
#user ⇒ Object
Returns the value of attribute user.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(identifier, attributes = {}) ⇒ Tag
constructor
A new instance of Tag.
Methods included from Comparison
Constructor Details
#initialize(identifier, attributes = {}) ⇒ Tag
Returns a new instance of Tag.
7 8 9 10 11 12 13 14 |
# File 'lib/fb_graph/tag.rb', line 7 def initialize(identifier, attributes = {}) @x = attributes.delete(:x) @y = attributes.delete(:y) if (created_time = attributes.delete(:created_time)) @created_time = Time.parse(created_time).utc end @user = User.new(identifier, attributes) end |
Instance Attribute Details
#created_time ⇒ Object
Returns the value of attribute created_time.
5 6 7 |
# File 'lib/fb_graph/tag.rb', line 5 def created_time @created_time end |
#user ⇒ Object
Returns the value of attribute user.
5 6 7 |
# File 'lib/fb_graph/tag.rb', line 5 def user @user end |
#x ⇒ Object
Returns the value of attribute x.
5 6 7 |
# File 'lib/fb_graph/tag.rb', line 5 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
5 6 7 |
# File 'lib/fb_graph/tag.rb', line 5 def y @y end |