Class: Shanon::AbstractClient

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAbstractClient

Returns a new instance of AbstractClient.



8
9
10
11
12
# File 'lib/shanon/abstract_client.rb', line 8

def initialize
  @secrets = get_secrets
  @conn = build_client
  @token = get_token
end

Instance Attribute Details

#connObject (readonly)

Returns the value of attribute conn.



6
7
8
# File 'lib/shanon/abstract_client.rb', line 6

def conn
  @conn
end

#secretsObject (readonly)

Returns the value of attribute secrets.



6
7
8
# File 'lib/shanon/abstract_client.rb', line 6

def secrets
  @secrets
end

#tokenObject (readonly)

Returns the value of attribute token.



6
7
8
# File 'lib/shanon/abstract_client.rb', line 6

def token
  @token
end