Class: TomatoPower::Poster

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(posters = {}) ⇒ Poster

Returns a new instance of Poster.



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

def initialize posters={}
  @thumbnail = posters["thumbnail"]
  @profile = posters["profile"]
  @detailed = posters["detailed"]
  @original = posters["originall"]
end

Instance Attribute Details

#detailedObject (readonly)

Returns the value of attribute detailed.



4
5
6
# File 'lib/tomato_power/movie/poster.rb', line 4

def detailed
  @detailed
end

#originalObject (readonly)

Returns the value of attribute original.



4
5
6
# File 'lib/tomato_power/movie/poster.rb', line 4

def original
  @original
end

#profileObject (readonly)

Returns the value of attribute profile.



4
5
6
# File 'lib/tomato_power/movie/poster.rb', line 4

def profile
  @profile
end

#thumbnailObject (readonly)

Returns the value of attribute thumbnail.



4
5
6
# File 'lib/tomato_power/movie/poster.rb', line 4

def thumbnail
  @thumbnail
end