Class: ACube::Endpoint::CommonBase

Inherits:
Object
  • Object
show all
Defined in:
lib/acube/endpoint/common_base.rb

Direct Known Subclasses

Auth

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCommonBase

Returns a new instance of CommonBase.



8
9
10
11
12
13
# File 'lib/acube/endpoint/common_base.rb', line 8

def initialize
  @connection = Faraday.new(
    url: ACube.common_endpoint,
    headers: {'Content-Type' => 'application/json'}
  )
end

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



6
7
8
# File 'lib/acube/endpoint/common_base.rb', line 6

def connection
  @connection
end