Module: Rescuegroups::Configuration

Included in:
Rescuegroups
Defined in:
lib/rescuegroups/configuration.rb

Constant Summary collapse

ENDPOINT =
'https://api.rescuegroups.org/http/json'
API_KEY =
nil
CONTENT_TYPE =
"application/json"

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



8
9
10
# File 'lib/rescuegroups/configuration.rb', line 8

def api_key
  @api_key
end

Class Method Details

.extended(base) ⇒ Object



10
11
12
# File 'lib/rescuegroups/configuration.rb', line 10

def self.extended(base)
  base.reset
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



18
19
20
# File 'lib/rescuegroups/configuration.rb', line 18

def configure
  yield self
end

#resetObject



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

def reset
  self.api_key = API_KEY
end