Class: RSS::RDF

Inherits:
Element show all
Includes:
RSS10, RootElementMixin, TaxonomyTopicModel
Defined in:
lib/rss/1.0.rb,
lib/rss/image.rb,
lib/rss/content.rb,
lib/rss/taxonomy.rb,
lib/rss/trackback.rb,
lib/rss/dublincore.rb,
lib/rss/syndication.rb

Defined Under Namespace

Classes: Bag, Channel, Image, Item, Li, Seq, Textinput

Constant Summary collapse

PREFIX =
'rdf'
URI =
"http://www.w3.org/1999/02/22-rdf-syntax-ns#"

Constants included from RSS10

RSS::RSS10::ELEMENTS, RSS::RSS10::NSPOOL

Constants inherited from Element

Element::GET_ATTRIBUTES, Element::HAVE_CHILDREN_ELEMENTS, Element::INDENT, Element::MODELS, Element::MUST_CALL_VALIDATORS, Element::NEED_INITIALIZE_VARIABLES, Element::PLURAL_FORMS, Element::TO_ELEMENT_METHODS

Instance Attribute Summary collapse

Attributes included from RootElementMixin

#output_encoding

Attributes included from XMLStyleSheetMixin

#xml_stylesheets

Attributes inherited from Element

#do_validate

Class Method Summary collapse

Instance Method Summary collapse

Methods included from TaxonomyTopicModel

append_features

Methods included from BaseModel

#install_date_element, #install_have_child_element, #install_have_children_element, #install_text_element

Methods included from Utils

element_initialize_arguments?, get_file_and_line_from_caller, html_escape, new_with_value_if_need, to_class_name

Methods included from RootElementMixin

#setup_maker, #to_xml

Methods included from RSS10

append_features

Methods inherited from Element

#convert, #converter=, get_attributes, have_children_elements, inherited, install_ns, models, must_call_validators, need_initialize_variables, plural_forms, required_prefix, #setup_maker, tag_name, #tag_name, to_element_methods, #to_s, #validate, #validate_for_stream

Constructor Details

#initialize(version = nil, encoding = nil, standalone = nil) ⇒ RDF

Returns a new instance of RDF.



50
51
52
# File 'lib/rss/1.0.rb', line 50

def initialize(version=nil, encoding=nil, standalone=nil)
  super('1.0', version, encoding, standalone)
end

Instance Attribute Details

#encodingObject

Returns the value of attribute encoding.



48
49
50
# File 'lib/rss/1.0.rb', line 48

def encoding
  @encoding
end

#rss_versionObject

Returns the value of attribute rss_version.



48
49
50
# File 'lib/rss/1.0.rb', line 48

def rss_version
  @rss_version
end

#standaloneObject

Returns the value of attribute standalone.



48
49
50
# File 'lib/rss/1.0.rb', line 48

def standalone
  @standalone
end

#versionObject

Returns the value of attribute version.



48
49
50
# File 'lib/rss/1.0.rb', line 48

def version
  @version
end

Class Method Details

.required_uriObject



24
25
26
# File 'lib/rss/1.0.rb', line 24

def required_uri
  URI
end

Instance Method Details

#full_nameObject



54
55
56
# File 'lib/rss/1.0.rb', line 54

def full_name
  tag_name_with_prefix(PREFIX)
end