Class: Lightning::Post

Inherits:
Object
  • Object
show all
Defined in:
lib/lightning/post.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/lightning/post.rb', line 3

def description
  @description
end

#feedObject

Returns the value of attribute feed.



3
4
5
# File 'lib/lightning/post.rb', line 3

def feed
  @feed
end

Returns the value of attribute link.



3
4
5
# File 'lib/lightning/post.rb', line 3

def link
  @link
end

#playerObject

Returns the value of attribute player.



3
4
5
# File 'lib/lightning/post.rb', line 3

def player
  @player
end

#pub_dateObject

Returns the value of attribute pub_date.



3
4
5
# File 'lib/lightning/post.rb', line 3

def pub_date
  @pub_date
end

#thumbnailObject

Returns the value of attribute thumbnail.



3
4
5
# File 'lib/lightning/post.rb', line 3

def thumbnail
  @thumbnail
end

#titleObject

Returns the value of attribute title.



3
4
5
# File 'lib/lightning/post.rb', line 3

def title
  @title
end