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

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

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ HTTPMethod

Returns a new instance of HTTPMethod.



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

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

Instance Method Details

#parametersObject



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

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