Class: Scalarium::Cloud::Rol
- Defined in:
- lib/scalarium/rol.rb
Instance Method Summary collapse
-
#initialize(token, cloud, hash) ⇒ Rol
constructor
A new instance of Rol.
- #instances ⇒ Object
Methods inherited from Resource
Methods included from Api
Constructor Details
#initialize(token, cloud, hash) ⇒ Rol
Returns a new instance of Rol.
6 7 8 9 |
# File 'lib/scalarium/rol.rb', line 6 def initialize(token, cloud, hash) super(token,hash) @cloud = cloud end |
Instance Method Details
#instances ⇒ Object
11 12 13 |
# File 'lib/scalarium/rol.rb', line 11 def instances @cloud.instances.select{|i| i.role_ids.include?(self.id)} end |