Class: FbGraph::Property
- Inherits:
-
Object
- Object
- FbGraph::Property
- Includes:
- Comparison
- Defined in:
- lib/fb_graph/property.rb
Instance Attribute Summary collapse
-
#href ⇒ Object
Returns the value of attribute href.
-
#name ⇒ Object
Returns the value of attribute name.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Property
constructor
A new instance of Property.
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
#href ⇒ Object
Returns the value of attribute href.
5 6 7 |
# File 'lib/fb_graph/property.rb', line 5 def href @href end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/fb_graph/property.rb', line 5 def name @name end |
#text ⇒ Object
Returns the value of attribute text.
5 6 7 |
# File 'lib/fb_graph/property.rb', line 5 def text @text end |