Class: BadFruit::Posters

Inherits:
Object
  • Object
show all
Defined in:
lib/badfruit/Posters/posters.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(posterHash) ⇒ Posters

Returns a new instance of Posters.



4
5
6
7
8
9
# File 'lib/badfruit/Posters/posters.rb', line 4

def initialize(posterHash)
  @thumbnail = posterHash["thumbnail"]
  @profile = posterHash["profile"]
  @detailed = posterHash["detailed"]
  @original = posterHash["original"]
end

Instance Attribute Details

#detailedObject (readonly)

Returns the value of attribute detailed.



3
4
5
# File 'lib/badfruit/Posters/posters.rb', line 3

def detailed
  @detailed
end

#originalObject (readonly)

Returns the value of attribute original.



3
4
5
# File 'lib/badfruit/Posters/posters.rb', line 3

def original
  @original
end

#profileObject (readonly)

Returns the value of attribute profile.



3
4
5
# File 'lib/badfruit/Posters/posters.rb', line 3

def profile
  @profile
end

#thumbnailObject (readonly)

Returns the value of attribute thumbnail.



3
4
5
# File 'lib/badfruit/Posters/posters.rb', line 3

def thumbnail
  @thumbnail
end