Class: LedgerSync::Adaptors::NetSuite::Record::Property
- Inherits:
-
Object
- Object
- LedgerSync::Adaptors::NetSuite::Record::Property
- Defined in:
- lib/ledger_sync/adaptors/netsuite/record/property.rb
Instance Attribute Summary collapse
-
#enum ⇒ Object
readonly
Returns the value of attribute enum.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enum: [], format: nil, key:, title:, type:) ⇒ Property
constructor
A new instance of Property.
Constructor Details
#initialize(enum: [], format: nil, key:, title:, type:) ⇒ Property
Returns a new instance of Property.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/ledger_sync/adaptors/netsuite/record/property.rb', line 17 def initialize( enum: [], format: nil, key:, title:, type: ) @enum = enum @format = format @key = key @title = title @type = type end |
Instance Attribute Details
#enum ⇒ Object (readonly)
Returns the value of attribute enum.
11 12 13 |
# File 'lib/ledger_sync/adaptors/netsuite/record/property.rb', line 11 def enum @enum end |
#format ⇒ Object (readonly)
Returns the value of attribute format.
11 12 13 |
# File 'lib/ledger_sync/adaptors/netsuite/record/property.rb', line 11 def format @format end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
11 12 13 |
# File 'lib/ledger_sync/adaptors/netsuite/record/property.rb', line 11 def key @key end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
11 12 13 |
# File 'lib/ledger_sync/adaptors/netsuite/record/property.rb', line 11 def title @title end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
11 12 13 |
# File 'lib/ledger_sync/adaptors/netsuite/record/property.rb', line 11 def type @type end |
Class Method Details
.new_from_hash(data:, key:) ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'lib/ledger_sync/adaptors/netsuite/record/property.rb', line 32 def self.new_from_hash(data:, key:) new( enum: data['enum'], format: data['format'], key: key, title: data['title'], type: data['type'] ) end |