module Octopart

A simple ruby wrapper for the Octopart.com API All methods are module methods and should be called on the Octopart module.

@example

Octopart::Client.new('apikey')

Public Class Methods

api_key() click to toggle source

api_key - The API key to use

# File lib/octopart-ruby.rb, line 6
def self.api_key
  raise APIKeyNotSetError if @api_key.nil?
  @api_key
end
api_key=(api_key) click to toggle source

api_key - The API key to use

# File lib/octopart-ruby.rb, line 12
def self.api_key=(api_key)
  @api_key = api_key
end