Class: Appydave::Tools::Configuration::Models::ChannelsConfig::ChannelLocation

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

Overview

Type-safe class to access channel location properties

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ ChannelLocation

Returns a new instance of ChannelLocation.



110
111
112
113
114
115
# File 'lib/appydave/tools/configuration/models/channels_config.rb', line 110

def initialize(data)
  @content_projects = data['content_projects']
  @video_projects = data['video_projects']
  @published_projects = data['published_projects']
  @abandoned_projects = data['abandoned_projects']
end

Instance Attribute Details

#abandoned_projectsObject

Returns the value of attribute abandoned_projects.



108
109
110
# File 'lib/appydave/tools/configuration/models/channels_config.rb', line 108

def abandoned_projects
  @abandoned_projects
end

#content_projectsObject

Returns the value of attribute content_projects.



108
109
110
# File 'lib/appydave/tools/configuration/models/channels_config.rb', line 108

def content_projects
  @content_projects
end

#published_projectsObject

Returns the value of attribute published_projects.



108
109
110
# File 'lib/appydave/tools/configuration/models/channels_config.rb', line 108

def published_projects
  @published_projects
end

#video_projectsObject

Returns the value of attribute video_projects.



108
109
110
# File 'lib/appydave/tools/configuration/models/channels_config.rb', line 108

def video_projects
  @video_projects
end

Instance Method Details

#to_hObject



117
118
119
120
121
122
123
124
# File 'lib/appydave/tools/configuration/models/channels_config.rb', line 117

def to_h
  {
    'content_projects' => @content_projects,
    'video_projects' => @video_projects,
    'published_projects' => @published_projects,
    'abandoned_projects' => @abandoned_projects
  }
end