Class: Superfaktura::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/superfaktura/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#emailObject

Returns the value of attribute email.



3
4
5
# File 'lib/superfaktura/configuration.rb', line 3

def email
  @email
end

#sandboxObject

Returns the value of attribute sandbox.



3
4
5
# File 'lib/superfaktura/configuration.rb', line 3

def sandbox
  @sandbox
end

#tokenObject

Returns the value of attribute token.



3
4
5
# File 'lib/superfaktura/configuration.rb', line 3

def token
  @token
end