Class: Antech::Resources::BaseResource

Inherits:
Object
  • Object
show all
Defined in:
lib/antech/resources/base_resource.rb

Direct Known Subclasses

LabResult, Test

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(auth_token) ⇒ BaseResource

Returns a new instance of BaseResource.



10
11
12
# File 'lib/antech/resources/base_resource.rb', line 10

def initialize(auth_token)
  @auth_token = auth_token
end

Instance Attribute Details

#auth_tokenObject (readonly)

Returns the value of attribute auth_token.



8
9
10
# File 'lib/antech/resources/base_resource.rb', line 8

def auth_token
  @auth_token
end

Instance Method Details

#base_urlObject



14
15
16
# File 'lib/antech/resources/base_resource.rb', line 14

def base_url
  'https://onlineapi.antechdiagnostics.com/api'
end