Class: Retab::WorkflowPublished
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::WorkflowPublished
- Defined in:
- lib/retab/workflows/workflow_published.rb
Constant Summary collapse
- HASH_ATTRS =
{ version_id: :version_id, published_at: :published_at, description: :description }.freeze
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#published_at ⇒ Object
Returns the value of attribute published_at.
-
#version_id ⇒ Object
Returns the value of attribute version_id.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ WorkflowPublished
constructor
A new instance of WorkflowPublished.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ WorkflowPublished
Returns a new instance of WorkflowPublished.
19 20 21 22 23 24 |
# File 'lib/retab/workflows/workflow_published.rb', line 19 def initialize(json) hash = self.class.normalize(json) @version_id = hash[:version_id] @published_at = hash[:published_at] @description = hash[:description] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
14 15 16 |
# File 'lib/retab/workflows/workflow_published.rb', line 14 def description @description end |
#published_at ⇒ Object
Returns the value of attribute published_at.
14 15 16 |
# File 'lib/retab/workflows/workflow_published.rb', line 14 def published_at @published_at end |
#version_id ⇒ Object
Returns the value of attribute version_id.
14 15 16 |
# File 'lib/retab/workflows/workflow_published.rb', line 14 def version_id @version_id end |