Class: Fog::Support::StormOnDemand::Real

Inherits:
Object
  • Object
show all
Includes:
Fog::StormOnDemand::RealShared
Defined in:
lib/fog/storm_on_demand/support.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

Constant Summary

Constants included from Fog::StormOnDemand::RealShared

Fog::StormOnDemand::RealShared::API_URL, Fog::StormOnDemand::RealShared::API_VERSION

Instance Method Summary collapse

Methods included from Fog::StormOnDemand::RealShared

#initialize, #reload, #request

Instance Method Details

#add_feedback(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/support/add_feedback.rb', line 5

def add_feedback(options={})
  request(
    :path => '/Support/Ticket/addFeedback',
    :body => Fog::JSON.encode(:params => options)
  )
end

#add_transaction_feedback(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/support/add_transaction_feedback.rb', line 5

def add_transaction_feedback(options={})
  request(
    :path => '/Support/Ticket/addTransactionFeedback',
    :body => Fog::JSON.encode(:params => options)
  )
end

#authenticate(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/support/authenticate.rb', line 5

def authenticate(options={})
  request(
    :path => '/Support/Ticket/authenticate',
    :body => Fog::JSON.encode(:params => options)
  )
end

#close_ticket(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/support/close_ticket.rb', line 5

def close_ticket(options={})
  request(
    :path => '/Support/Ticket/close',
    :body => Fog::JSON.encode(:params => options)
  )
end

#create_ticket(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/support/create_ticket.rb', line 5

def create_ticket(options={})
  request(
    :path => '/Support/Ticket/create',
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_active_alert(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/support/get_active_alert.rb', line 5

def get_active_alert(options={})
  request(
    :path => '/Support/Alert/getActive',
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_ticket_details(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/support/get_ticket_details.rb', line 5

def get_ticket_details(options={})
  request(
    :path => '/Support/Ticket/details',
    :body => Fog::JSON.encode(:params => options)
  )
end

#list_ticket_types(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/support/list_ticket_types.rb', line 5

def list_ticket_types(options={})
  request(
    :path => '/Support/Ticket/types',
    :body => Fog::JSON.encode(:params => options)
  )
end

#list_tickets(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/support/list_tickets.rb', line 5

def list_tickets(options={})
  request(
    :path => '/Support/Ticket/list',
    :body => Fog::JSON.encode(:params => options)
  )
end

#reopen_ticket(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/support/reopen_ticket.rb', line 5

def reopen_ticket(options={})
  request(
    :path => '/Support/Ticket/reopen',
    :body => Fog::JSON.encode(:params => options)
  )
end

#reply_ticket(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/support/reply_ticket.rb', line 5

def reply_ticket(options={})
  request(
    :path => '/Support/Ticket/reply',
    :body => Fog::JSON.encode(:params => options)
  )
end