Class: BeerMapping::Image
- Inherits:
-
Object
- Object
- BeerMapping::Image
- Defined in:
- lib/beer_mapping/image.rb
Instance Attribute Summary collapse
-
#caption ⇒ Object
readonly
Returns the value of attribute caption.
-
#created_date ⇒ Object
readonly
Returns the value of attribute created_date.
-
#credit ⇒ Object
readonly
Returns the value of attribute credit.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#thumburl ⇒ Object
readonly
Returns the value of attribute thumburl.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(url, thumburl, width, height, caption, credit, created_date) ⇒ Image
constructor
A new instance of Image.
Constructor Details
#initialize(url, thumburl, width, height, caption, credit, created_date) ⇒ Image
Returns a new instance of Image.
5 6 7 |
# File 'lib/beer_mapping/image.rb', line 5 def initialize(url, thumburl, width, height, caption, credit, created_date) @url, @thumburl, @width, @height, @caption, @credit, @created_date = url, thumburl, width, height, caption, credit, created_date end |
Instance Attribute Details
#caption ⇒ Object (readonly)
Returns the value of attribute caption.
3 4 5 |
# File 'lib/beer_mapping/image.rb', line 3 def caption @caption end |
#created_date ⇒ Object (readonly)
Returns the value of attribute created_date.
3 4 5 |
# File 'lib/beer_mapping/image.rb', line 3 def created_date @created_date end |
#credit ⇒ Object (readonly)
Returns the value of attribute credit.
3 4 5 |
# File 'lib/beer_mapping/image.rb', line 3 def credit @credit end |
#height ⇒ Object (readonly)
Returns the value of attribute height.
3 4 5 |
# File 'lib/beer_mapping/image.rb', line 3 def height @height end |
#thumburl ⇒ Object (readonly)
Returns the value of attribute thumburl.
3 4 5 |
# File 'lib/beer_mapping/image.rb', line 3 def thumburl @thumburl end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/beer_mapping/image.rb', line 3 def url @url end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
3 4 5 |
# File 'lib/beer_mapping/image.rb', line 3 def width @width end |