Class: Bonanza::LinkStrategies::Otrs

Inherits:
Base
  • Object
show all
Defined in:
lib/bonanza/link_strategies/otrs.rb

Instance Attribute Summary

Attributes inherited from Base

#entity

Instance Method Summary collapse

Methods inherited from Base

#app, #environment, #initialize, #url_to

Constructor Details

This class inherits a constructor from Bonanza::LinkStrategies::Base

Instance Method Details

#domainObject



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/bonanza/link_strategies/otrs.rb', line 11

def domain
  case environment.to_s
  when 'development'
    'http://otrs.nine.ch/otrs'
  when 'test'
    'http://otrs.test'
  when 'staging'
    'https://otrs-staging.nine.ch/otrs'
  when 'production'
    'https://otrs.nine.ch/otrs'
  end
end

#pathsObject



4
5
6
7
8
9
# File 'lib/bonanza/link_strategies/otrs.rb', line 4

def paths
  {
    customer: "/index.pl?Action=AgentCustomerInformationCenter;CustomerID=%{reference}",
    ticket: "/index.pl?Action=AgentTicketZoom;TicketNumber=%{reference}",
  }
end