Class: Lightning::Post
- Inherits:
-
Object
- Object
- Lightning::Post
- Defined in:
- lib/lightning/post.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#feed ⇒ Object
Returns the value of attribute feed.
-
#link ⇒ Object
Returns the value of attribute link.
-
#player ⇒ Object
Returns the value of attribute player.
-
#pub_date ⇒ Object
Returns the value of attribute pub_date.
-
#thumbnail ⇒ Object
Returns the value of attribute thumbnail.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Post
constructor
A new instance of Post.
Constructor Details
#initialize(opts = {}) ⇒ Post
Returns a new instance of Post.
5 6 7 8 9 10 11 12 13 |
# File 'lib/lightning/post.rb', line 5 def initialize(opts={}) self.title = opts[:title] self.link = opts[:link] self.description = opts[:description] self.pub_date = opts[:pub_date] self.feed = opts[:feed] self.thumbnail = opts[:thumbnail] self.player = opts[:player] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/lightning/post.rb', line 3 def description @description end |
#feed ⇒ Object
Returns the value of attribute feed.
3 4 5 |
# File 'lib/lightning/post.rb', line 3 def feed @feed end |
#link ⇒ Object
Returns the value of attribute link.
3 4 5 |
# File 'lib/lightning/post.rb', line 3 def link @link end |
#player ⇒ Object
Returns the value of attribute player.
3 4 5 |
# File 'lib/lightning/post.rb', line 3 def player @player end |
#pub_date ⇒ Object
Returns the value of attribute pub_date.
3 4 5 |
# File 'lib/lightning/post.rb', line 3 def pub_date @pub_date end |
#thumbnail ⇒ Object
Returns the value of attribute thumbnail.
3 4 5 |
# File 'lib/lightning/post.rb', line 3 def thumbnail @thumbnail end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/lightning/post.rb', line 3 def title @title end |