module Shiphawk

Attributes

api_token[RW]
sandbox[RW]

Public Class Methods

configure() { |self| ... } click to toggle source

config/initializers/shiphawk.rb (for instance)

“‘ruby Shiphawk.configure do |config|

config.token = 'api_token'

end “‘ elsewhere

“‘ruby client = ShiphawkClient::Client.new “`

You can also chose to use the class as a singleton

“‘ruby Shiphawk.{method_name} “`

# File lib/shiphawk.rb, line 23
def configure
  yield self
  true
end
method_missing(method, *args, &block) click to toggle source
Calls superclass method
# File lib/shiphawk.rb, line 28
def method_missing(method, *args, &block)
  return super unless self::Client.new.respond_to?(method)
  self::Client.new.send(method, *args, &block)
end