Class: Client

Inherits:
Object
  • Object
show all
Defined in:
lib/client.rb

Direct Known Subclasses

Bukku, BukkuTest

Defined Under Namespace

Classes: Error

Constant Summary collapse

BASE_URI =

The BASE_URI below is there to facilitate test only

'https://rekon.org'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token:, domain:) ⇒ Client

Returns a new instance of Client.



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

def initialize(token:, domain:)
  @token = token
  @domain = domain
end

Instance Attribute Details

#domainObject (readonly)

Returns the value of attribute domain.



5
6
7
# File 'lib/client.rb', line 5

def domain
  @domain
end

#tokenObject (readonly)

Returns the value of attribute token.



5
6
7
# File 'lib/client.rb', line 5

def token
  @token
end