Class: Xhash::ApiClient
- Inherits:
-
Object
show all
- Includes:
- JsonApi
- Defined in:
- lib/xhash/client/api_client.rb
Class Method Summary
collapse
Methods included from JsonApi
included
Class Method Details
.api_base ⇒ Object
11
12
13
|
# File 'lib/xhash/client/api_client.rb', line 11
def self.api_base
@api_base
end
|
.api_base=(api_base) ⇒ Object
15
16
17
|
# File 'lib/xhash/client/api_client.rb', line 15
def self.api_base=(api_base)
@api_base = api_base
end
|
.api_key ⇒ Object
19
20
21
|
# File 'lib/xhash/client/api_client.rb', line 19
def self.api_key
@api_key
end
|
.api_key=(api_key) ⇒ Object
23
24
25
|
# File 'lib/xhash/client/api_client.rb', line 23
def self.api_key=(api_key)
@api_key = api_key
end
|
.config {|_self| ... } ⇒ Object
7
8
9
|
# File 'lib/xhash/client/api_client.rb', line 7
def self.config
yield self
end
|
.timeout ⇒ Object
27
28
29
|
# File 'lib/xhash/client/api_client.rb', line 27
def self.timeout
@timeout
end
|
.timeout=(timeout) ⇒ Object
31
32
33
|
# File 'lib/xhash/client/api_client.rb', line 31
def self.timeout=(timeout)
@timeout = timeout
end
|