Methods
F
I
N
R
S
Included Modules
Constants
AVAILABLE_SIZES = %w(small medium large)
 
Class Public methods
new(*args)
# File lib/rss/image.rb, line 166
def initialize(*args)
  if Utils.element_initialize_arguments?(args)
    super
  else
    super()
    self.about = args[0]
    self.size = args[1]
  end
end
required_prefix()
# File lib/rss/image.rb, line 132
def required_prefix
  IMAGE_PREFIX
end
required_uri()
# File lib/rss/image.rb, line 136
def required_uri
  IMAGE_URI
end
Instance Public methods
full_name()
# File lib/rss/image.rb, line 176
def full_name
  tag_name_with_prefix(IMAGE_PREFIX)
end
image_size=(new_value)
Alias for: size=
set_size(new_value)
Alias for: size=
size=(new_value)
Also aliased as: set_size, image_size=
# File lib/rss/image.rb, line 152
def size=(new_value)
  if @do_validate and !new_value.nil?
    new_value = new_value.strip
    unless AVAILABLE_SIZES.include?(new_value)
      attr_name = "#{IMAGE_PREFIX}:size"
      raise NotAvailableValueError.new(full_name, new_value, attr_name)
    end
  end
  set_size(new_value)
end