Class: TMDBParty::Image
- Inherits:
-
Object
- Object
- TMDBParty::Image
- Defined in:
- lib/tmdb_party/image.rb
Instance Attribute Summary collapse
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Image
constructor
A new instance of Image.
Constructor Details
#initialize(options = {}) ⇒ Image
Returns a new instance of Image.
5 6 7 8 9 |
# File 'lib/tmdb_party/image.rb', line 5 def initialize(={}) @url = ["url"] @type = ["type"] @size = ["size"] end |
Instance Attribute Details
#size ⇒ Object (readonly)
Returns the value of attribute size.
3 4 5 |
# File 'lib/tmdb_party/image.rb', line 3 def size @size end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/tmdb_party/image.rb', line 3 def type @type end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/tmdb_party/image.rb', line 3 def url @url end |