Class: ConsoleReviews::Reviews

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Reviews

Returns a new instance of Reviews



4
5
6
7
8
9
# File 'lib/console_reviews/reviews.rb', line 4

def initialize(attributes = {})
	@title = attributes[:title]
	@metascore = attributes[:metascore]
	@release_date = attributes[:release_date]
	@link = attributes[:link]
end

Instance Attribute Details

Returns the value of attribute link



2
3
4
# File 'lib/console_reviews/reviews.rb', line 2

def link
  @link
end

#metascoreObject

Returns the value of attribute metascore



2
3
4
# File 'lib/console_reviews/reviews.rb', line 2

def metascore
  @metascore
end

#release_dateObject

Returns the value of attribute release_date



2
3
4
# File 'lib/console_reviews/reviews.rb', line 2

def release_date
  @release_date
end

#titleObject

Returns the value of attribute title



2
3
4
# File 'lib/console_reviews/reviews.rb', line 2

def title
  @title
end