Class: LedgerSync::Ledgers::NetSuite::Record::HTTPMethod

Inherits:
Util::ReadOnlyObject show all
Defined in:
lib/ledger_sync/ledgers/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



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

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

Instance Method Details

#parametersObject



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

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