Class: Client
- Inherits:
-
Object
- Object
- Client
- Defined in:
- lib/client.rb
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
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(token:, domain:) ⇒ Client
constructor
A new instance of Client.
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
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
5 6 7 |
# File 'lib/client.rb', line 5 def domain @domain end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
5 6 7 |
# File 'lib/client.rb', line 5 def token @token end |