Class: ACube::Endpoint::CommonBase
- Inherits:
-
Object
- Object
- ACube::Endpoint::CommonBase
- Defined in:
- lib/acube/endpoint/common_base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
Instance Method Summary collapse
-
#initialize ⇒ CommonBase
constructor
A new instance of CommonBase.
Constructor Details
#initialize ⇒ CommonBase
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
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
6 7 8 |
# File 'lib/acube/endpoint/common_base.rb', line 6 def connection @connection end |