Class: LedgerSync::NetSuite::Record::HTTPMethod
- Inherits:
-
Util::ReadOnlyObject
- Object
- Util::ReadOnlyObject
- LedgerSync::NetSuite::Record::HTTPMethod
- Defined in:
- lib/ledger_sync/netsuite/record/http_method.rb
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ HTTPMethod
constructor
A new instance of HTTPMethod.
- #parameters ⇒ Object
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
#parameters ⇒ Object
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 |