Module: IllyanClient

Defined in:
lib/illyan_client.rb,
lib/illyan_client/client.rb,
lib/illyan_client/person.rb,
lib/illyan_client/version.rb

Defined Under Namespace

Classes: Client, Person

Constant Summary collapse

VERSION =
"2.0.0"

Class Method Summary collapse

Class Method Details

.base_url=(url) ⇒ Object



8
9
10
# File 'lib/illyan_client.rb', line 8

def self.base_url=(url)
  @@base_url = url
end

.configure! {|IllyanClient| ... } ⇒ Object

Yields:



16
17
18
# File 'lib/illyan_client.rb', line 16

def self.configure!
  yield IllyanClient
end

.default_clientObject



20
21
22
# File 'lib/illyan_client.rb', line 20

def self.default_client
  @default_client ||= IllyanClient::Client.new
end

.token=(token) ⇒ Object



12
13
14
# File 'lib/illyan_client.rb', line 12

def self.token=(token)
  @@token = token
end