Module: IllyanClient

Defined in:
lib/illyan_client.rb

Defined Under Namespace

Classes: Person

Class Method Summary collapse

Class Method Details

.base_url=(url) ⇒ Object



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

def self.base_url=(url)
  @@base_url = url
  Person.site = "#{url}/admin"
end

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

Yields:



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

def self.configure!
  yield IllyanClient
end

.tokenObject



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

def self.token
  Person.user
end

.token=(token) ⇒ Object



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

def self.token=(token)
  Person.user = token
end