Class: Rews::Update
- Inherits:
-
Object
- Object
- Rews::Update
- Defined in:
- lib/rews/update.rb
Direct Known Subclasses
Defined Under Namespace
Modules: Xml
Instance Attribute Summary collapse
-
#field_uri ⇒ Object
readonly
Returns the value of attribute field_uri.
-
#item_expr ⇒ Object
readonly
Returns the value of attribute item_expr.
Instance Method Summary collapse
-
#initialize(field_uri, item_expr = nil) ⇒ Update
constructor
A new instance of Update.
- #inspect ⇒ Object
- #to_xml ⇒ Object
Constructor Details
#initialize(field_uri, item_expr = nil) ⇒ Update
Returns a new instance of Update.
6 7 8 9 |
# File 'lib/rews/update.rb', line 6 def initialize(field_uri, item_expr=nil) @field_uri = field_uri @item_expr = item_expr end |
Instance Attribute Details
#field_uri ⇒ Object (readonly)
Returns the value of attribute field_uri.
3 4 5 |
# File 'lib/rews/update.rb', line 3 def field_uri @field_uri end |
#item_expr ⇒ Object (readonly)
Returns the value of attribute item_expr.
4 5 6 |
# File 'lib/rews/update.rb', line 4 def item_expr @item_expr end |
Instance Method Details
#inspect ⇒ Object
11 12 13 |
# File 'lib/rews/update.rb', line 11 def inspect "#<#{Xml.update_tag(self.class)} @field_uri=#{@field_uri}, @item_expr=#{@item_expr.inspect}>" end |
#to_xml ⇒ Object
15 16 17 |
# File 'lib/rews/update.rb', line 15 def to_xml Xml.write_update(self.class, field_uri, item_expr) end |