Class: Superfaktura::Configuration
- Inherits:
-
Object
- Object
- Superfaktura::Configuration
- Defined in:
- lib/superfaktura/configuration.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#sandbox ⇒ Object
Returns the value of attribute sandbox.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/superfaktura/configuration.rb', line 5 def initialize @email = ENV['SUPERFAKTURA_EMAIL'] @token = ENV['SUPERFAKTURA_TOKEN'] @sandbox = ENV['SUPERFAKTURA_SANDBOX'] == 'true' ? true : false end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
3 4 5 |
# File 'lib/superfaktura/configuration.rb', line 3 def email @email end |
#sandbox ⇒ Object
Returns the value of attribute sandbox.
3 4 5 |
# File 'lib/superfaktura/configuration.rb', line 3 def sandbox @sandbox end |
#token ⇒ Object
Returns the value of attribute token.
3 4 5 |
# File 'lib/superfaktura/configuration.rb', line 3 def token @token end |