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