Class: RmsWebService::Response::Item::Delete
- Defined in:
- lib/rms_web_service/response/item/delete.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#errors ⇒ Object
Returns the value of attribute errors.
Attributes inherited from Parser
Instance Method Summary collapse
-
#initialize(xml) ⇒ Delete
constructor
A new instance of Delete.
- #success? ⇒ Boolean
Methods inherited from Parser
#set_attribute, #set_attributes
Constructor Details
#initialize(xml) ⇒ Delete
Returns a new instance of Delete.
6 7 8 9 |
# File 'lib/rms_web_service/response/item/delete.rb', line 6 def initialize(xml) super set_attributes @parsed_xml.xpath("//item").children end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
5 6 7 |
# File 'lib/rms_web_service/response/item/delete.rb', line 5 def code @code end |
#errors ⇒ Object
Returns the value of attribute errors.
5 6 7 |
# File 'lib/rms_web_service/response/item/delete.rb', line 5 def errors @errors end |
Instance Method Details
#success? ⇒ Boolean
11 12 13 |
# File 'lib/rms_web_service/response/item/delete.rb', line 11 def success? return @code == "N000" ? true : false end |