Class: FeedParser::Thumbnail

Inherits:
Object
  • Object
show all
Defined in:
lib/feedparser/thumbnail.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#heightObject

todo/check: use avatar_url ?? used by json feed -check if always a url



17
18
19
# File 'lib/feedparser/thumbnail.rb', line 17

def height
  @height
end

#urlObject Also known as: uri

Returns the value of attribute url.



7
8
9
# File 'lib/feedparser/thumbnail.rb', line 7

def url
  @url
end

#widthObject

Returns the value of attribute width.



14
15
16
# File 'lib/feedparser/thumbnail.rb', line 14

def width
  @width
end

Instance Method Details

#height?Boolean

Returns:

  • (Boolean)


16
# File 'lib/feedparser/thumbnail.rb', line 16

def height?()  @height.nil? == false;  end

#width?Boolean

Returns:

  • (Boolean)


13
# File 'lib/feedparser/thumbnail.rb', line 13

def width?()   @width.nil? == false;  end