Class: Fog::Hetznercloud::Compute::Actions
- Inherits:
-
Collection
- Object
- Collection
- Fog::Hetznercloud::Compute::Actions
- Defined in:
- lib/fog/hetznercloud/models/compute/actions.rb
Instance Method Summary collapse
Instance Method Details
#all(filters = {}) ⇒ Object
7 8 9 10 |
# File 'lib/fog/hetznercloud/models/compute/actions.rb', line 7 def all(filters = {}) actions = service.list_actions(filters).body['actions'] || [] load(actions) end |
#get(identity) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/fog/hetznercloud/models/compute/actions.rb', line 12 def get(identity) if (action = service.get_action(identity).body['action']) new(action) end rescue Fog::Hetznercloud::Compute::UnknownResourceError nil end |