Class: OrientdbClient::HttpAdapters::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/orientdb_client/http_adapters.rb

Direct Known Subclasses

CurbAdapter, TyphoeusAdapter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timeout: nil) ⇒ Base

Returns a new instance of Base.



8
9
10
11
12
13
14
# File 'lib/orientdb_client/http_adapters.rb', line 8

def initialize(timeout: nil)
  @username = nil
  @password = nil
  @session_id = nil
  @timeout = timeout
  after_initialize
end

Instance Attribute Details

#passwordObject

Returns the value of attribute password.



6
7
8
# File 'lib/orientdb_client/http_adapters.rb', line 6

def password
  @password
end

#usernameObject

Returns the value of attribute username.



6
7
8
# File 'lib/orientdb_client/http_adapters.rb', line 6

def username
  @username
end

Instance Method Details

#requestObject

Raises:

  • (NotImplementedError)


22
23
24
# File 'lib/orientdb_client/http_adapters.rb', line 22

def request
  raise NotImplementedError
end

#reset_credentialsObject



16
17
18
19
20
# File 'lib/orientdb_client/http_adapters.rb', line 16

def reset_credentials
  @username = nil
  @password = nil
  @session_id = nil
end