Class: LockstepSdk::ErpModel
- Inherits:
-
Object
- Object
- LockstepSdk::ErpModel
- Defined in:
- lib/lockstep_sdk/models/erp_model.rb
Overview
Represents unsupported ERP systems
Instance Attribute Summary collapse
-
#erp_system_id ⇒ Uuid
Unique ID for this ERP.
-
#is_supported ⇒ Boolean
Flag to indicate if ERP is supported.
-
#name ⇒ String
Name of ERP.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ ErpModel
constructor
Initialize the ErpModel using the provided prototype.
Constructor Details
#initialize(params = {}) ⇒ ErpModel
Initialize the ErpModel using the provided prototype
24 25 26 27 28 |
# File 'lib/lockstep_sdk/models/erp_model.rb', line 24 def initialize(params = {}) @erp_system_id = params.dig(:erp_system_id) @name = params.dig(:name) @is_supported = params.dig(:is_supported) end |
Instance Attribute Details
#erp_system_id ⇒ Uuid
Returns Unique ID for this ERP.
31 32 33 |
# File 'lib/lockstep_sdk/models/erp_model.rb', line 31 def erp_system_id @erp_system_id end |
#is_supported ⇒ Boolean
Returns Flag to indicate if ERP is supported.
35 36 37 |
# File 'lib/lockstep_sdk/models/erp_model.rb', line 35 def is_supported @is_supported end |
#name ⇒ String
Returns Name of ERP.
33 34 35 |
# File 'lib/lockstep_sdk/models/erp_model.rb', line 33 def name @name end |