Class: LedgerSync::Adaptors::NetSuite::Record::HTTPMethod
- Inherits:
-
Object
- Object
- LedgerSync::Adaptors::NetSuite::Record::HTTPMethod
- Defined in:
- lib/ledger_sync/adaptors/netsuite/record/http_method.rb
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#summary ⇒ Object
readonly
Returns the value of attribute summary.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(method:, parameters:, path:, raw:, summary:) ⇒ HTTPMethod
constructor
A new instance of HTTPMethod.
Constructor Details
#initialize(method:, parameters:, path:, raw:, summary:) ⇒ HTTPMethod
Returns a new instance of HTTPMethod.
17 18 19 20 21 22 23 |
# File 'lib/ledger_sync/adaptors/netsuite/record/http_method.rb', line 17 def initialize(method:, parameters:, path:, raw:, summary:) @method = method @parameters = parameters @path = path @raw = raw @summary = summary end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
11 12 13 |
# File 'lib/ledger_sync/adaptors/netsuite/record/http_method.rb', line 11 def method @method end |
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
11 12 13 |
# File 'lib/ledger_sync/adaptors/netsuite/record/http_method.rb', line 11 def parameters @parameters end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
11 12 13 |
# File 'lib/ledger_sync/adaptors/netsuite/record/http_method.rb', line 11 def path @path end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
11 12 13 |
# File 'lib/ledger_sync/adaptors/netsuite/record/http_method.rb', line 11 def raw @raw end |
#summary ⇒ Object (readonly)
Returns the value of attribute summary.
11 12 13 |
# File 'lib/ledger_sync/adaptors/netsuite/record/http_method.rb', line 11 def summary @summary end |
Class Method Details
.new_from_hash(data:, method:, path:) ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/ledger_sync/adaptors/netsuite/record/http_method.rb', line 25 def self.new_from_hash(data:, method:, path:) new( method: method, parameters: data['parameters'], path: path, raw: data, summary: data['summary'] ) end |