Class: VORuby::VOEvent::V1_1::EventIVORN
- Defined in:
- lib/voruby/voevent/1.1/voevent.rb
Instance Attribute Summary collapse
-
#cite ⇒ Object
Returns the value of attribute cite.
-
#uri ⇒ Object
Returns the value of attribute uri.
Class Method Summary collapse
Instance Method Summary collapse
- #==(i) ⇒ Object
-
#initialize(uri, cite) ⇒ EventIVORN
constructor
A new instance of EventIVORN.
- #to_xml(name = nil) ⇒ Object
Methods included from SerializableToXml
Constructor Details
#initialize(uri, cite) ⇒ EventIVORN
Returns a new instance of EventIVORN.
108 109 110 111 |
# File 'lib/voruby/voevent/1.1/voevent.rb', line 108 def initialize(uri, cite) self.uri = uri self.cite = cite end |
Instance Attribute Details
#cite ⇒ Object
Returns the value of attribute cite.
106 107 108 |
# File 'lib/voruby/voevent/1.1/voevent.rb', line 106 def cite @cite end |
#uri ⇒ Object
Returns the value of attribute uri.
106 107 108 |
# File 'lib/voruby/voevent/1.1/voevent.rb', line 106 def uri @uri end |
Class Method Details
Instance Method Details
#==(i) ⇒ Object
127 128 129 130 |
# File 'lib/voruby/voevent/1.1/voevent.rb', line 127 def ==(i) self.uri == i.uri and self.cite == i.cite end |
#to_xml(name = nil) ⇒ Object
132 133 134 135 136 137 138 139 |
# File 'lib/voruby/voevent/1.1/voevent.rb', line 132 def to_xml(name=nil) el = element(name) el.text = self.uri.to_s el.attributes["#{obj_ns.prefix}:cite"] = self.cite.to_s el end |