Class: Bonanza::LinkStrategies::Billing

Inherits:
Base
  • Object
show all
Defined in:
lib/bonanza/link_strategies/billing.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



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

def domain
  case environment.to_s
  when 'development'
    "http://billing.dev"
  when 'test'
    "http://billing.test"
  when 'staging'
    'http://billing.dev'
  when 'production'
    'https://billingfw.nine.ch'
  end
end

#pathsObject



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

def paths
  {
    debtor: "/DebitorEdit.aspx?DebiNbr=%{reference}",
  }
end