Class: BadFruit::Posters
- Inherits:
-
Object
- Object
- BadFruit::Posters
- Defined in:
- lib/badfruit/Posters/posters.rb
Instance Attribute Summary collapse
-
#detailed ⇒ Object
readonly
Returns the value of attribute detailed.
-
#original ⇒ Object
readonly
Returns the value of attribute original.
-
#profile ⇒ Object
readonly
Returns the value of attribute profile.
-
#thumbnail ⇒ Object
readonly
Returns the value of attribute thumbnail.
Instance Method Summary collapse
-
#initialize(posterHash) ⇒ Posters
constructor
A new instance of Posters.
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
#detailed ⇒ Object (readonly)
Returns the value of attribute detailed.
3 4 5 |
# File 'lib/badfruit/Posters/posters.rb', line 3 def detailed @detailed end |
#original ⇒ Object (readonly)
Returns the value of attribute original.
3 4 5 |
# File 'lib/badfruit/Posters/posters.rb', line 3 def original @original end |
#profile ⇒ Object (readonly)
Returns the value of attribute profile.
3 4 5 |
# File 'lib/badfruit/Posters/posters.rb', line 3 def profile @profile end |
#thumbnail ⇒ Object (readonly)
Returns the value of attribute thumbnail.
3 4 5 |
# File 'lib/badfruit/Posters/posters.rb', line 3 def thumbnail @thumbnail end |