Class: TinyZap::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#public_keyObject

Returns the value of attribute public_key.



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

def public_key
  @public_key
end

#secret_keyObject

Returns the value of attribute secret_key.



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

def secret_key
  @secret_key
end

Instance Method Details

#load_envObject



13
14
15
16
# File 'lib/tinyzap/configuration.rb', line 13

def load_env
  load_secret_key_env
  load_public_key_env
end

#load_public_key_envObject



9
10
11
# File 'lib/tinyzap/configuration.rb', line 9

def load_public_key_env
  self.public_key = ENV["TINYZAP_PUBLIC_KEY"]
end

#load_secret_key_envObject



5
6
7
# File 'lib/tinyzap/configuration.rb', line 5

def load_secret_key_env
  self.secret_key = ENV["TINYZAP_SECRET_KEY"]
end