Class: Dor::Workflow::Response::Workflows
- Inherits:
-
Object
- Object
- Dor::Workflow::Response::Workflows
- Defined in:
- lib/dor/models/response/workflows.rb
Overview
The response from asking the server about all workflows for an item
Instance Attribute Summary collapse
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
-
#initialize(xml:) ⇒ Workflows
constructor
A new instance of Workflows.
- #pid ⇒ Object
- #workflows ⇒ Object
Constructor Details
#initialize(xml:) ⇒ Workflows
Returns a new instance of Workflows.
10 11 12 |
# File 'lib/dor/models/response/workflows.rb', line 10 def initialize(xml:) @xml = xml end |
Instance Attribute Details
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
24 25 26 |
# File 'lib/dor/models/response/workflows.rb', line 24 def xml @xml end |
Instance Method Details
#pid ⇒ Object
14 15 16 |
# File 'lib/dor/models/response/workflows.rb', line 14 def pid ng_xml.at_xpath('/workflows/@objectId').text end |