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
Constant Summary collapse
- VERSION =
"2.0.0"
Class Method Summary collapse
- .base_url=(url) ⇒ Object
- .configure! {|IllyanClient| ... } ⇒ Object
- .default_client ⇒ Object
- .token=(token) ⇒ Object
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
16 17 18 |
# File 'lib/illyan_client.rb', line 16 def self.configure! yield IllyanClient end |
.default_client ⇒ Object
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 |