Module: IllyanClient
- Defined in:
- lib/illyan_client.rb
Defined Under Namespace
Classes: Person
Class Method Summary collapse
- .base_url=(url) ⇒ Object
- .configure! {|IllyanClient| ... } ⇒ Object
- .token ⇒ Object
- .token=(token) ⇒ Object
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
19 20 21 |
# File 'lib/illyan_client.rb', line 19 def self.configure! yield IllyanClient end |
.token ⇒ Object
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 |