Class: JIRA::Filter

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#authorString

Returns:

  • (String)


729
730
731
# File 'lib/jiraSOAP/remoteEntities.rb', line 729

def author
  @author
end

#descriptionString

Returns:

  • (String)


733
734
735
# File 'lib/jiraSOAP/remoteEntities.rb', line 733

def description
  @description
end

#idString

Returns:

  • (String)


725
726
727
# File 'lib/jiraSOAP/remoteEntities.rb', line 725

def id
  @id
end

#nameString

Returns:

  • (String)


727
728
729
# File 'lib/jiraSOAP/remoteEntities.rb', line 727

def name
  @name
end

#projectString

Returns:

  • (String)


731
732
733
# File 'lib/jiraSOAP/remoteEntities.rb', line 731

def project
  @project
end

#xmlnil

Returns:

  • (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.

Parameters:

  • frag (Handsoap::XmlQueryFront::NokogiriDriver)

Returns:



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.author      = 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