Class: Appydave::Tools::Configuration::Models::YoutubeAutomationConfig::WorkflowGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/appydave/tools/configuration/models/youtube_automation_config.rb

Overview

Model for workflow groups

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ WorkflowGroup

Returns a new instance of WorkflowGroup.



62
63
64
65
# File 'lib/appydave/tools/configuration/models/youtube_automation_config.rb', line 62

def initialize(data)
  @group = data['group']
  @description = data['description']
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



60
61
62
# File 'lib/appydave/tools/configuration/models/youtube_automation_config.rb', line 60

def description
  @description
end

#groupObject

Returns the value of attribute group.



60
61
62
# File 'lib/appydave/tools/configuration/models/youtube_automation_config.rb', line 60

def group
  @group
end

Instance Method Details

#to_hObject



67
68
69
70
71
72
# File 'lib/appydave/tools/configuration/models/youtube_automation_config.rb', line 67

def to_h
  {
    'group' => @group,
    'description' => @description
  }
end