Class: JIRA::Filter
- Inherits:
-
Object
- Object
- JIRA::Filter
- Defined in:
- lib/jiraSOAP/remoteEntities.rb
Overview
TODO:
find out what @project is supposed to be for
Represents a filter
Instance Attribute Summary collapse
Class Method Summary collapse
-
.filter_with_xml_fragment(frag) ⇒ JIRA::Filter?
Factory method that takes a fragment of a SOAP response.
Instance Attribute Details
#author ⇒ String
729 730 731 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 729 def @author end |
#description ⇒ String
733 734 735 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 733 def description @description end |
#id ⇒ String
725 726 727 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 725 def id @id end |
#name ⇒ String
727 728 729 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 727 def name @name end |
#project ⇒ String
731 732 733 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 731 def project @project end |
#xml ⇒ nil
735 736 737 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 735 def xml @xml end |
Class Method Details
.filter_with_xml_fragment(frag) ⇒ JIRA::Filter?
Factory method that takes a fragment of a SOAP response.
740 741 742 743 744 745 746 747 748 749 750 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 740 def self.filter_with_xml_fragment(frag) return if frag.nil? filter = Filter.new filter.id = frag.xpath('id').to_s filter.name = frag.xpath('name').to_s filter. = frag.xpath('author').to_s filter.project = frag.xpath('project').to_s filter.description = frag.xpath('description').to_s filter.xml = frag.xpath('xml').to_s filter end |