Class: Xhash::ApiClient

Inherits:
Object
  • Object
show all
Includes:
JsonApi
Defined in:
lib/xhash/client/api_client.rb

Direct Known Subclasses

DatabaseLookup, General, OCR, SAT

Class Method Summary collapse

Methods included from JsonApi

included

Class Method Details

.api_baseObject



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_keyObject



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

Yields:

  • (_self)

Yield Parameters:



7
8
9
# File 'lib/xhash/client/api_client.rb', line 7

def self.config
  yield self
end

.timeoutObject



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