Class: LedgerSync::Adaptors::NetSuite::Record::HTTPMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/ledger_sync/adaptors/netsuite/record/http_method.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method:, parameters:, path:, raw:, summary:) ⇒ HTTPMethod

Returns a new instance of HTTPMethod.



17
18
19
20
21
22
23
# File 'lib/ledger_sync/adaptors/netsuite/record/http_method.rb', line 17

def initialize(method:, parameters:, path:, raw:, summary:)
  @method = method
  @parameters = parameters
  @path = path
  @raw = raw
  @summary = summary
end

Instance Attribute Details

#methodObject (readonly)

Returns the value of attribute method.



11
12
13
# File 'lib/ledger_sync/adaptors/netsuite/record/http_method.rb', line 11

def method
  @method
end

#parametersObject (readonly)

Returns the value of attribute parameters.



11
12
13
# File 'lib/ledger_sync/adaptors/netsuite/record/http_method.rb', line 11

def parameters
  @parameters
end

#pathObject (readonly)

Returns the value of attribute path.



11
12
13
# File 'lib/ledger_sync/adaptors/netsuite/record/http_method.rb', line 11

def path
  @path
end

#rawObject (readonly)

Returns the value of attribute raw.



11
12
13
# File 'lib/ledger_sync/adaptors/netsuite/record/http_method.rb', line 11

def raw
  @raw
end

#summaryObject (readonly)

Returns the value of attribute summary.



11
12
13
# File 'lib/ledger_sync/adaptors/netsuite/record/http_method.rb', line 11

def summary
  @summary
end

Class Method Details

.new_from_hash(data:, method:, path:) ⇒ Object



25
26
27
28
29
30
31
32
33
# File 'lib/ledger_sync/adaptors/netsuite/record/http_method.rb', line 25

def self.new_from_hash(data:, method:, path:)
  new(
    method: method,
    parameters: data['parameters'],
    path: path,
    raw: data,
    summary: data['summary']
  )
end