Sha256: f4617724ec3ef1e6f98e8067aced48aa0fc1a595c17877a1d1888392b906a3d2

Contents?: true

Size: 924 Bytes

Versions: 3

Compression:

Stored size: 924 Bytes

Contents

require 'reshape/configuration'
require 'reshape/connection'
require 'reshape/request'
require 'reshape/error'
require 'reshape/client/orders'
require 'reshape/client/materials'
require 'reshape/client/models'
require 'reshape/client/printers'
require 'reshape/client/price'
require 'reshape/client/categories'

module Reshape
  class Client
    attr_accessor(*Configuration::VALID_OPTIONS_KEYS)

    def initialize(options={})
      options = Reshape.options.merge(options)
      Configuration::VALID_OPTIONS_KEYS.each do |key|
        send("#{key}=", options[key])
      end
    end
    
    include Reshape::Configuration
    include Reshape::Connection
    include Reshape::Request
    include Reshape::Client::Orders
    include Reshape::Client::Materials
    include Reshape::Client::Models
    include Reshape::Client::Printers
    include Reshape::Client::Price
    include Reshape::Client::Categories
    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
reshape-0.2 lib/reshape/client.rb
reshape-0.1.1 lib/reshape/client.rb
reshape-0.1 lib/reshape/client.rb