Class: BillboardApi::Config
- Inherits:
-
Object
- Object
- BillboardApi::Config
- Includes:
- Singleton
- Defined in:
- lib/billboard-api/config.rb
Instance Attribute Summary collapse
-
#paypal_service_url ⇒ Object
Returns the value of attribute paypal_service_url.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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_url ⇒ Object
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 |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/billboard-api/config.rb', line 5 def url @url end |