Module: Octopart

Defined in:
lib/octopart/base.rb,
lib/octopart/part.rb,
lib/octopart/config.rb,
lib/octopart/version.rb

Defined Under Namespace

Classes: Base, Configuration, Part

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.configurationObject



3
4
5
# File 'lib/octopart/config.rb', line 3

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



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

def configure
  yield configuration
end