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