Class: Tag
- Inherits:
-
Object
- Object
- Tag
- Defined in:
- lib/r43/tag.rb
Overview
Implements a tag object from 43 things. Currently only meant to be constructed by an R43::Request object
require 'r43'
request = R43::Request.new(<api_key>)
tags = request.get_persons_tags(<username>)
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
-
.from_xml(xml) ⇒ Object
Builds a Tag object from an xml object.
Instance Method Summary collapse
-
#initialize ⇒ Tag
constructor
A new instance of Tag.
Constructor Details
#initialize ⇒ Tag
Returns a new instance of Tag.
15 16 17 18 |
# File 'lib/r43/tag.rb', line 15 def initialize() # just to initialize the object, we'll always feed the attributes in # some other way end |
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count.
13 14 15 |
# File 'lib/r43/tag.rb', line 13 def count @count end |
#name ⇒ Object
Returns the value of attribute name.
13 14 15 |
# File 'lib/r43/tag.rb', line 13 def name @name end |