Class: Appydave::Tools::Configuration::Models::ChannelsConfig::ChannelLocation
- Inherits:
-
Object
- Object
- Appydave::Tools::Configuration::Models::ChannelsConfig::ChannelLocation
- Defined in:
- lib/appydave/tools/configuration/models/channels_config.rb
Overview
Type-safe class to access channel location properties
Instance Attribute Summary collapse
-
#abandoned_projects ⇒ Object
Returns the value of attribute abandoned_projects.
-
#content_projects ⇒ Object
Returns the value of attribute content_projects.
-
#published_projects ⇒ Object
Returns the value of attribute published_projects.
-
#video_projects ⇒ Object
Returns the value of attribute video_projects.
Instance Method Summary collapse
-
#initialize(data) ⇒ ChannelLocation
constructor
A new instance of ChannelLocation.
- #to_h ⇒ Object
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_projects ⇒ Object
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_projects ⇒ Object
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_projects ⇒ Object
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_projects ⇒ Object
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_h ⇒ Object
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 |