Class: TomatoPower::Poster
- Inherits:
-
Object
- Object
- TomatoPower::Poster
- Defined in:
- lib/tomato_power/movie/poster.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(posters = {}) ⇒ Poster
constructor
A new instance of Poster.
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
#detailed ⇒ Object (readonly)
Returns the value of attribute detailed.
4 5 6 |
# File 'lib/tomato_power/movie/poster.rb', line 4 def detailed @detailed end |
#original ⇒ Object (readonly)
Returns the value of attribute original.
4 5 6 |
# File 'lib/tomato_power/movie/poster.rb', line 4 def original @original end |
#profile ⇒ Object (readonly)
Returns the value of attribute profile.
4 5 6 |
# File 'lib/tomato_power/movie/poster.rb', line 4 def profile @profile end |
#thumbnail ⇒ Object (readonly)
Returns the value of attribute thumbnail.
4 5 6 |
# File 'lib/tomato_power/movie/poster.rb', line 4 def thumbnail @thumbnail end |