Class: Retab::EditConfig
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::EditConfig
- Defined in:
- lib/retab/workflow_artifacts/edit_config.rb
Constant Summary collapse
- HASH_ATTRS =
{ color: :color }.freeze
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ EditConfig
constructor
A new instance of EditConfig.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ EditConfig
Returns a new instance of EditConfig.
14 15 16 17 |
# File 'lib/retab/workflow_artifacts/edit_config.rb', line 14 def initialize(json) hash = self.class.normalize(json) @color = hash[:color] end |
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
12 13 14 |
# File 'lib/retab/workflow_artifacts/edit_config.rb', line 12 def color @color end |