Class: NprStories::Program
- Inherits:
-
Object
- Object
- NprStories::Program
- Defined in:
- lib/npr_stories/program.rb
Constant Summary collapse
- @@programs =
all programs
[]
Instance Attribute Summary collapse
-
#additional_info ⇒ Object
Returns the value of attribute additional_info.
-
#program_title ⇒ Object
Returns the value of attribute program_title.
-
#search_id ⇒ Object
Returns the value of attribute search_id.
-
#stories ⇒ Object
Returns the value of attribute stories.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Program
constructor
A new instance of Program.
Constructor Details
#initialize ⇒ Program
Returns a new instance of Program.
7 8 9 10 |
# File 'lib/npr_stories/program.rb', line 7 def initialize @stories = [] #all stories for this program @@programs << self end |
Instance Attribute Details
#additional_info ⇒ Object
Returns the value of attribute additional_info.
3 4 5 |
# File 'lib/npr_stories/program.rb', line 3 def additional_info @additional_info end |
#program_title ⇒ Object
Returns the value of attribute program_title.
3 4 5 |
# File 'lib/npr_stories/program.rb', line 3 def program_title @program_title end |
#search_id ⇒ Object
Returns the value of attribute search_id.
3 4 5 |
# File 'lib/npr_stories/program.rb', line 3 def search_id @search_id end |
#stories ⇒ Object
Returns the value of attribute stories.
3 4 5 |
# File 'lib/npr_stories/program.rb', line 3 def stories @stories end |
Class Method Details
.all ⇒ Object
12 13 14 |
# File 'lib/npr_stories/program.rb', line 12 def self.all @@programs end |