class Fog::Support::StormOnDemand::Tickets

Public Instance Methods

all(options = {}) click to toggle source
# File lib/fog/support/storm_on_demand/models/tickets.rb, line 16
def all(options = {})
  tickets = service.list_tickets(options).body['items']
  load(tickets)
end
create(options) click to toggle source
# File lib/fog/support/storm_on_demand/models/tickets.rb, line 7
def create(options)
  ticket = service.create_ticket(options).body
  new(ticket)
end
get(ticket_id, secid) click to toggle source
# 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() click to toggle source
# File lib/fog/support/storm_on_demand/models/tickets.rb, line 21
def types
  service.list_ticket_types.body['types']
end