Class: Retab::WorkflowPublished

Inherits:
Types::BaseModel show all
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

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



14
15
16
# File 'lib/retab/workflows/workflow_published.rb', line 14

def description
  @description
end

#published_atObject

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_idObject

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