Class: GameReviews::Reviews

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(details = {}) ⇒ Reviews

Returns a new instance of Reviews.



5
6
7
8
9
10
# File 'lib/game_reviews/reviews.rb', line 5

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

Instance Attribute Details

Returns the value of attribute link.



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

def link
  @link
end

#metascoreObject

Returns the value of attribute metascore.



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

def metascore
  @metascore
end

#release_dateObject

Returns the value of attribute release_date.



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

def release_date
  @release_date
end

#titleObject

Returns the value of attribute title.



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

def title
  @title
end