Class: BeerMapping::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/beer_mapping/image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#captionObject (readonly)

Returns the value of attribute caption.



3
4
5
# File 'lib/beer_mapping/image.rb', line 3

def caption
  @caption
end

#created_dateObject (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

#creditObject (readonly)

Returns the value of attribute credit.



3
4
5
# File 'lib/beer_mapping/image.rb', line 3

def credit
  @credit
end

#heightObject (readonly)

Returns the value of attribute height.



3
4
5
# File 'lib/beer_mapping/image.rb', line 3

def height
  @height
end

#thumburlObject (readonly)

Returns the value of attribute thumburl.



3
4
5
# File 'lib/beer_mapping/image.rb', line 3

def thumburl
  @thumburl
end

#urlObject (readonly)

Returns the value of attribute url.



3
4
5
# File 'lib/beer_mapping/image.rb', line 3

def url
  @url
end

#widthObject (readonly)

Returns the value of attribute width.



3
4
5
# File 'lib/beer_mapping/image.rb', line 3

def width
  @width
end