Module: Oshpark

Defined in:
lib/oshpark.rb,
lib/oshpark/user.rb,
lib/oshpark/image.rb,
lib/oshpark/layer.rb,
lib/oshpark/model.rb,
lib/oshpark/order.rb,
lib/oshpark/panel.rb,
lib/oshpark/price.rb,
lib/oshpark/token.rb,
lib/oshpark/client.rb,
lib/oshpark/import.rb,
lib/oshpark/upload.rb,
lib/oshpark/address.rb,
lib/oshpark/project.rb,
lib/oshpark/version.rb,
lib/oshpark/stateful.rb,
lib/oshpark/connection.rb,
lib/oshpark/order_item.rb,
lib/oshpark/order_option.rb,
lib/oshpark/remote_model.rb,
lib/oshpark/dimensionable.rb,
lib/oshpark/shipping_rate.rb,
lib/oshpark/order_item_option_selection.rb

Defined Under Namespace

Modules: Dimensionable, Model, RemoteModel, Stateful Classes: Address, Client, Connection, Image, Import, Layer, Order, OrderItem, OrderItemOptionSelection, OrderOption, Panel, Price, Project, ShippingRate, Token, Upload, User

Constant Summary collapse

VERSION =
"1.0.0"
HttpError =
Class.new RuntimeError
Unauthorized =
Class.new HttpError
NotFound =
Class.new HttpError
ServerError =
Class.new HttpError
Unprocessable =
Class.new HttpError

Class Method Summary collapse

Class Method Details

.client(*args) ⇒ Object



29
30
31
32
33
34
35
# File 'lib/oshpark.rb', line 29

def client *args
  if args.size > 0
    @client = Client.new *args
  else
    @client ||= Client.new
  end
end