module Express
Constants
- ENDPOINT
- POPUP_ENDPOINT
- VERSION
Public Class Methods
endpoint()
click to toggle source
# File lib/express.rb, line 22 def self.endpoint if sandbox? Express::ENDPOINT[:sandbox] else Express::ENDPOINT[:production] end end
log(message, mode = :info)
click to toggle source
# File lib/express.rb, line 37 def self.log(message, mode = :info) logger.send mode, message end
logger()
click to toggle source
# File lib/express.rb, line 40 def self.logger @@logger end
logger=(logger)
click to toggle source
# File lib/express.rb, line 43 def self.logger=(logger) @@logger = logger end
popup_endpoint()
click to toggle source
# File lib/express.rb, line 29 def self.popup_endpoint if sandbox? Express::POPUP_ENDPOINT[:sandbox] else Express::POPUP_ENDPOINT[:production] end end
sandbox!()
click to toggle source
# File lib/express.rb, line 53 def self.sandbox! self.sandbox = true end
sandbox=(boolean)
click to toggle source
# File lib/express.rb, line 56 def self.sandbox=(boolean) @@sandbox = boolean end
sandbox?()
click to toggle source
# File lib/express.rb, line 50 def self.sandbox? @@sandbox end