Class: Hachi::Clients::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/hachi/clients/base.rb

Direct Known Subclasses

Alert, Artifact, Case, User

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_endpoint:, api_key:) ⇒ Base

Returns a new instance of Base.



13
14
15
16
# File 'lib/hachi/clients/base.rb', line 13

def initialize(api_endpoint:, api_key:)
  @api_endpoint = URI(api_endpoint)
  @api_key = api_key
end

Instance Attribute Details

#api_endpointObject (readonly)

Returns the value of attribute api_endpoint.



10
11
12
# File 'lib/hachi/clients/base.rb', line 10

def api_endpoint
  @api_endpoint
end

#api_keyObject (readonly)

Returns the value of attribute api_key.



11
12
13
# File 'lib/hachi/clients/base.rb', line 11

def api_key
  @api_key
end