Exception: Pairity::KeyNotConfigured

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pairity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ KeyNotConfigured

Returns a new instance of KeyNotConfigured.



7
8
9
# File 'lib/pairity.rb', line 7

def initialize(name)
  self.name = name
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#messageObject



11
12
13
# File 'lib/pairity.rb', line 11

def message
  "Could not find a file or env var for #{name}"
end