Class: Fog::Support::StormOnDemand::Tickets
- Inherits:
-
Collection
- Object
- Collection
- Fog::Support::StormOnDemand::Tickets
- Defined in:
- lib/fog/storm_on_demand/models/support/tickets.rb
Instance Method Summary collapse
- #all(options = {}) ⇒ Object
- #create(options) ⇒ Object
- #get(ticket_id, secid) ⇒ Object
- #types ⇒ Object
Instance Method Details
#all(options = {}) ⇒ Object
19 20 21 22 |
# File 'lib/fog/storm_on_demand/models/support/tickets.rb', line 19 def all(={}) tickets = service.list_tickets().body['items'] load(tickets) end |
#create(options) ⇒ Object
10 11 12 13 |
# File 'lib/fog/storm_on_demand/models/support/tickets.rb', line 10 def create() ticket = service.create_ticket().body new(ticket) end |
#get(ticket_id, secid) ⇒ Object
15 16 17 |
# File 'lib/fog/storm_on_demand/models/support/tickets.rb', line 15 def get(ticket_id, secid) service.get_ticket_details(:id => ticket_id, :secid => secid).body end |
#types ⇒ Object
24 25 26 |
# File 'lib/fog/storm_on_demand/models/support/tickets.rb', line 24 def types service.list_ticket_types.body['types'] end |