Class: Yweather::Image

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Image

Returns a new instance of Image.



10
11
12
13
14
15
16
# File 'lib/yweather/image.rb', line 10

def initialize (data)
  @title = data[:title]
  @link = data[:link]
  @url = data[:url]
  @height = data[:height]
  @width = data[:width]
end

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height.



4
5
6
# File 'lib/yweather/image.rb', line 4

def height
  @height
end

Returns the value of attribute link.



5
6
7
# File 'lib/yweather/image.rb', line 5

def link
  @link
end

#titleObject (readonly)

Returns the value of attribute title.



6
7
8
# File 'lib/yweather/image.rb', line 6

def title
  @title
end

#urlObject (readonly)

Returns the value of attribute url.



7
8
9
# File 'lib/yweather/image.rb', line 7

def url
  @url
end

#widthObject (readonly)

Returns the value of attribute width.



8
9
10
# File 'lib/yweather/image.rb', line 8

def width
  @width
end