Class: FbGraph::Property

Inherits:
Object
  • Object
show all
Includes:
Comparison
Defined in:
lib/fb_graph/property.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Comparison

#==

Constructor Details

#initialize(attributes = {}) ⇒ Property

Returns a new instance of Property.



7
8
9
10
11
# File 'lib/fb_graph/property.rb', line 7

def initialize(attributes = {})
  @name = attributes[:name]
  @text = attributes[:text]
  @href = attributes[:href]
end

Instance Attribute Details

#hrefObject

Returns the value of attribute href.



5
6
7
# File 'lib/fb_graph/property.rb', line 5

def href
  @href
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/fb_graph/property.rb', line 5

def name
  @name
end

#textObject

Returns the value of attribute text.



5
6
7
# File 'lib/fb_graph/property.rb', line 5

def text
  @text
end