Class: OrientdbClient::HttpAdapters::Base
- Inherits:
-
Object
- Object
- OrientdbClient::HttpAdapters::Base
- Defined in:
- lib/orientdb_client/http_adapters.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(timeout: nil) ⇒ Base
constructor
A new instance of Base.
- #request ⇒ Object
- #reset_credentials ⇒ Object
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
#password ⇒ Object
Returns the value of attribute password.
6 7 8 |
# File 'lib/orientdb_client/http_adapters.rb', line 6 def password @password end |
#username ⇒ Object
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
#request ⇒ Object
22 23 24 |
# File 'lib/orientdb_client/http_adapters.rb', line 22 def request raise NotImplementedError end |
#reset_credentials ⇒ Object
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 |