Class: BillboardApi::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/billboard-api/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



8
9
10
11
12
13
14
15
16
# File 'lib/billboard-api/config.rb', line 8

def initialize
  if production?
    self.url = "https://simplebillboard.com"
    self.paypal_service_url = "https://www.paypal.com/cgi-bin/webscr?"
  else
    self.url = "https://simplebillboard.com.simplificator.com"
    self.paypal_service_url = "https://www.sandbox.paypal.com/cgi-bin/webscr?"
  end
end

Instance Attribute Details

#paypal_service_urlObject

Returns the value of attribute paypal_service_url.



6
7
8
# File 'lib/billboard-api/config.rb', line 6

def paypal_service_url
  @paypal_service_url
end

#urlObject

Returns the value of attribute url.



5
6
7
# File 'lib/billboard-api/config.rb', line 5

def url
  @url
end