Class: Fog::Support::StormOnDemand::Tickets
- Inherits:
-
Collection
- Object
- Collection
- Fog::Support::StormOnDemand::Tickets
- Defined in:
- lib/fog/support/storm_on_demand/models/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
16 17 18 19 |
# File 'lib/fog/support/storm_on_demand/models/tickets.rb', line 16 def all( = {}) tickets = service.list_tickets().body["items"] load(tickets) end |
#create(options) ⇒ Object
7 8 9 10 |
# File 'lib/fog/support/storm_on_demand/models/tickets.rb', line 7 def create() ticket = service.create_ticket().body new(ticket) end |
#get(ticket_id, secid) ⇒ Object
12 13 14 |
# File 'lib/fog/support/storm_on_demand/models/tickets.rb', line 12 def get(ticket_id, secid) service.get_ticket_details(:id => ticket_id, :secid => secid).body end |
#types ⇒ Object
21 22 23 |
# File 'lib/fog/support/storm_on_demand/models/tickets.rb', line 21 def types service.list_ticket_types.body["types"] end |