Class: YTComment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ YTComment

Returns a new instance of YTComment.



5
6
7
8
9
10
11
# File 'lib/yt_comment.rb', line 5

def initialize(data)
	@title = data[:title]
	@content = data[:content]
	@author = data[:author]
	@author_uri = data[:author_uri]
	@video_uri = data[:video_uri]
end

Instance Attribute Details

#authorObject

Returns the value of attribute author.



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

def author
  @author
end

#author_uriObject

Returns the value of attribute author_uri.



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

def author_uri
  @author_uri
end

#contentObject

Returns the value of attribute content.



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

def content
  @content
end

#titleObject

Returns the value of attribute title.



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

def title
  @title
end

#video_uriObject

Returns the value of attribute video_uri.



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

def video_uri
  @video_uri
end