Class: Seiso::Connector::ConnectorV2
- Inherits:
-
Object
- Object
- Seiso::Connector::ConnectorV2
- Defined in:
- lib/seiso/connector/connector_v2.rb
Instance Attribute Summary collapse
-
#http ⇒ Object
readonly
Returns the value of attribute http.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(http, username, password) ⇒ ConnectorV2
constructor
A new instance of ConnectorV2.
Constructor Details
#initialize(http, username, password) ⇒ ConnectorV2
Returns a new instance of ConnectorV2.
11 12 13 14 15 16 17 18 19 |
# File 'lib/seiso/connector/connector_v2.rb', line 11 def initialize(http, username, password) @http = http @username = username @password = password @request_headers = { "Accept" => "application/hal+json", "Content-Type" => "application/hal+json" } end |
Instance Attribute Details
#http ⇒ Object (readonly)
Returns the value of attribute http.
8 9 10 |
# File 'lib/seiso/connector/connector_v2.rb', line 8 def http @http end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
9 10 11 |
# File 'lib/seiso/connector/connector_v2.rb', line 9 def username @username end |