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

Inherits:
Util::ReadOnlyObject show all
Defined in:
lib/ledger_sync/adaptors/netsuite/record/http_method.rb

Instance Attribute Summary

Attributes inherited from Util::ReadOnlyObject

#raw

Instance Method Summary collapse

Methods inherited from Util::ReadOnlyObject

#==, attribute, attributes, new_from_array, new_from_hash, source_keys

Constructor Details

#initialize(args = {}) ⇒ HTTPMethod

Returns a new instance of HTTPMethod.



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

def initialize(args = {})
  super(
    args.merge(
      key: "#{method} #{path}".downcase
    )
  )
end

Instance Method Details

#parametersObject



24
25
26
27
28
# File 'lib/ledger_sync/adaptors/netsuite/record/http_method.rb', line 24

def parameters
  Parameter.new_from_array(
    raw[:parameters]
  )
end