Class: RSS::Maker::ImageItemModel::ImageItemBase
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
RSS::Maker::Base
|
Defined in: | lib/rss/maker/image.rb |
Constant Summary
::RSS::Maker::Base - Inherited
Class Method Summary
::RSS::Maker::Base - Inherited
::RSS::Utils::InheritedReader - Extended
Instance Attribute Summary
- #about rw
-
#height
rw
Alias for #image_height.
- #image_height (also: #height) rw
- #image_width (also: #width) rw
- #resource rw
-
#width
rw
Alias for #image_width.
- #have_required_values? ⇒ Boolean readonly
::RSS::Maker::Base - Inherited
Instance Method Summary
::RSS::Maker::Base - Inherited
Constructor Details
This class inherits a constructor from RSS::Maker::Base
Instance Attribute Details
#about (rw)
[ GitHub ]# File 'lib/rss/maker/image.rb', line 26
attr_accessor :about, :resource, :image_width, :image_height
#have_required_values? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/rss/maker/image.rb', line 36
def have_required_values? @about end
#height (rw)
Alias for #image_height.
# File 'lib/rss/maker/image.rb', line 34
alias height image_height
#image_height (rw) Also known as: #height
[ GitHub ]# File 'lib/rss/maker/image.rb', line 26
attr_accessor :about, :resource, :image_width, :image_height
#image_width (rw) Also known as: #width
[ GitHub ]# File 'lib/rss/maker/image.rb', line 26
attr_accessor :about, :resource, :image_width, :image_height
#resource (rw)
[ GitHub ]# File 'lib/rss/maker/image.rb', line 26
attr_accessor :about, :resource, :image_width, :image_height
#width (rw)
Alias for #image_width.
# File 'lib/rss/maker/image.rb', line 32
alias width image_width
Instance Method Details
#to_feed(feed, current)
[ GitHub ]# File 'lib/rss/maker/image.rb', line 40
def to_feed(feed, current) if current.respond_to?(:image_item=) and have_required_values? item = current.class::ImageItem.new setup_values(item) setup_other_elements(item) current.image_item = item end end