Class: Fluxiom::Tags
- Includes:
- Enumerable
- Defined in:
- lib/fluxapi/tags.rb
Instance Attribute Summary
Attributes inherited from Fluxiom
Instance Method Summary collapse
- #each ⇒ Object
- #first ⇒ Object
-
#initialize ⇒ Tags
constructor
A new instance of Tags.
Methods inherited from Fluxiom
#account, #assets, call, post_call, #tags, #users
Constructor Details
#initialize ⇒ Tags
Returns a new instance of Tags.
3 4 5 6 7 8 |
# File 'lib/fluxapi/tags.rb', line 3 def initialize = [] self.class.call('/api/tags.xml')['tags'].each do |v| << Fluxiom::Tag.new(v) end end |
Instance Method Details
#each ⇒ Object
9 10 11 |
# File 'lib/fluxapi/tags.rb', line 9 def each .each {|pt| yield pt} end |
#first ⇒ Object
12 13 14 |
# File 'lib/fluxapi/tags.rb', line 12 def first .first end |