Module: Fog::Support

Defined in:
lib/fog/support.rb,
lib/fog/storm_on_demand/support.rb,
lib/fog/storm_on_demand/models/support/alert.rb,
lib/fog/storm_on_demand/models/support/alerts.rb,
lib/fog/storm_on_demand/models/support/ticket.rb,
lib/fog/storm_on_demand/models/support/tickets.rb,
lib/fog/storm_on_demand/requests/support/add_feedback.rb,
lib/fog/storm_on_demand/requests/support/authenticate.rb,
lib/fog/storm_on_demand/requests/support/close_ticket.rb,
lib/fog/storm_on_demand/requests/support/list_tickets.rb,
lib/fog/storm_on_demand/requests/support/reply_ticket.rb,
lib/fog/storm_on_demand/requests/support/create_ticket.rb,
lib/fog/storm_on_demand/requests/support/reopen_ticket.rb,
lib/fog/storm_on_demand/requests/support/get_active_alert.rb,
lib/fog/storm_on_demand/requests/support/list_ticket_types.rb,
lib/fog/storm_on_demand/requests/support/get_ticket_details.rb,
lib/fog/storm_on_demand/requests/support/add_transaction_feedback.rb

Defined Under Namespace

Classes: StormOnDemand

Class Method Summary collapse

Class Method Details

.[](provider) ⇒ Object



4
5
6
# File 'lib/fog/support.rb', line 4

def self.[](provider)
  self.new(:provider => provider)
end

.new(attributes) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fog/support.rb', line 8

def self.new(attributes)
  attributes = attributes.dup
  provider = attributes.delete(:provider).to_s.downcase.to_sym

  if provider == :stormondemand
    require 'fog/storm_on_demand/support'
    Fog::Support::StormOnDemand.new(attributes)
  else
    raise ArgumentError.new("#{provider} has no support service")
  end

end

.providersObject



21
22
23
# File 'lib/fog/support.rb', line 21

def self.providers
  Fog.services[:support]
end