module Nasp
Constants
- VERSION
Attributes
environment[RW]
production_key[RW]
production_token[RW]
sandbox_key[RW]
sandbox_token[RW]
Public Class Methods
ensure_key_and_token_set!()
click to toggle source
# File lib/nasp.rb, line 17 def ensure_key_and_token_set! if Nasp.key.blank? raise StandardError, "Invalid Nasp.#{environment}_key set." elsif Nasp.token.blank? raise StandardError, "Invalid Nasp.#{environment}_token set." end end
key()
click to toggle source
# File lib/nasp.rb, line 9 def key send(:"#{environment}_key") end
token()
click to toggle source
# File lib/nasp.rb, line 13 def token send(:"#{environment}_token") end