123456789_123456789_123456789_123456789_123456789_

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

NEED_INITIALIZE_VARIABLES, OTHER_ELEMENTS

Class Method Summary

Instance Attribute Summary

Instance Method Summary

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.

[ GitHub ]

  
# 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.

[ GitHub ]

  
# 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