Class: EcwidApi::Api::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/ecwid_api/api/base.rb

Overview

Internal: A base class for common API functionality

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Base

Public: Initializes a new EcwidApi::CategoryApi

client - The EcwidApi::Client to use with the API

Raises:



12
13
14
15
# File 'lib/ecwid_api/api/base.rb', line 12

def initialize(client)
  @client = client
  raise Error.new("The client cannot be nil") unless client
end