Class: Seiso::Connector::ConnectorV2

Inherits:
Object
  • Object
show all
Defined in:
lib/seiso/connector/connector_v2.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#httpObject (readonly)

Returns the value of attribute http.



8
9
10
# File 'lib/seiso/connector/connector_v2.rb', line 8

def http
  @http
end

#usernameObject (readonly)

Returns the value of attribute username.



9
10
11
# File 'lib/seiso/connector/connector_v2.rb', line 9

def username
  @username
end