Module: AssayDepot::Configurable

Included in:
AssayDepot
Defined in:
lib/assaydepot/configurable.rb

Constant Summary collapse

CONFIG_KEYS =
[
  :url,
  :access_token,
]

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.keysObject



17
18
19
# File 'lib/assaydepot/configurable.rb', line 17

def keys
  @keys ||= CONFIG_KEYS
end

Instance Method Details

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

Convenience method to allow configuration options to be set in a block

Yields:

  • (_self)

Yield Parameters:



5
6
7
8
# File 'lib/assaydepot/configurable.rb', line 5

def configure
  yield self
  self
end