Class: TomatoPower::Review

Inherits:
Object
  • Object
show all
Defined in:
lib/tomato_power/movie/review.rb

Overview

Review for a movie

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(review = {}) ⇒ Review

Returns a new instance of Review.



6
7
8
9
10
11
12
13
# File 'lib/tomato_power/movie/review.rb', line 6

def initialize review={}
  @critic = review["critic"]
  @date = review["date"]
  @freshness = review["freshness"]
  @publication = review["publication"]
  @quote = review["quote"]
  @links = review["links"]
end

Instance Attribute Details

#criticObject (readonly)

Returns the value of attribute critic.



5
6
7
# File 'lib/tomato_power/movie/review.rb', line 5

def critic
  @critic
end

#dateObject (readonly)

Returns the value of attribute date.



5
6
7
# File 'lib/tomato_power/movie/review.rb', line 5

def date
  @date
end

#freshnessObject (readonly)

Returns the value of attribute freshness.



5
6
7
# File 'lib/tomato_power/movie/review.rb', line 5

def freshness
  @freshness
end

Returns the value of attribute links.



5
6
7
# File 'lib/tomato_power/movie/review.rb', line 5

def links
  @links
end

#publicationObject (readonly)

Returns the value of attribute publication.



5
6
7
# File 'lib/tomato_power/movie/review.rb', line 5

def publication
  @publication
end

#quoteObject (readonly)

Returns the value of attribute quote.



5
6
7
# File 'lib/tomato_power/movie/review.rb', line 5

def quote
  @quote
end