Class: Review

Inherits:
Object
  • Object
show all
Defined in:
lib/badfruit/Reviews/review.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reviewHash) ⇒ Review

Returns a new instance of Review.



4
5
6
7
8
9
10
# File 'lib/badfruit/Reviews/review.rb', line 4

def initialize(reviewHash)
  @critic = reviewHash["critic"]
  @date = reviewHash["date"]
  @publication = reviewHash["publication"]
  @quote = reviewHash["quote"]
  @links = reviewHash["links"]
end

Instance Attribute Details

#criticObject

Returns the value of attribute critic.



2
3
4
# File 'lib/badfruit/Reviews/review.rb', line 2

def critic
  @critic
end

#dateObject

Returns the value of attribute date.



2
3
4
# File 'lib/badfruit/Reviews/review.rb', line 2

def date
  @date
end

Returns the value of attribute links.



2
3
4
# File 'lib/badfruit/Reviews/review.rb', line 2

def links
  @links
end

#publicationObject

Returns the value of attribute publication.



2
3
4
# File 'lib/badfruit/Reviews/review.rb', line 2

def publication
  @publication
end

#quoteObject

Returns the value of attribute quote.



2
3
4
# File 'lib/badfruit/Reviews/review.rb', line 2

def quote
  @quote
end