Class: JIRA::Scheme

Inherits:
Object
  • Object
show all
Defined in:
lib/jiraSOAP/remoteEntities.rb

Overview

Represents a scheme used by the server. Not very useful for the sake of the API; a more useful case might be if you wanted to emulate the server’s behaviour.

Direct Known Subclasses

PermissionScheme

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#descriptionString

Returns:

  • (String)


281
282
283
# File 'lib/jiraSOAP/remoteEntities.rb', line 281

def description
  @description
end

#idString

Returns:

  • (String)


275
276
277
# File 'lib/jiraSOAP/remoteEntities.rb', line 275

def id
  @id
end

#nameString

Returns:

  • (String)


277
278
279
# File 'lib/jiraSOAP/remoteEntities.rb', line 277

def name
  @name
end

#typeString

Returns:

  • (String)


279
280
281
# File 'lib/jiraSOAP/remoteEntities.rb', line 279

def type
  @type
end

Class Method Details

.scheme_with_xml_fragment(frag) ⇒ JIRA::Scheme?

Factory method that takes a fragment of a SOAP response.

Parameters:

  • frag (Handsoap::XmlQueryFront::NokogiriDriver)

Returns:



286
287
288
289
290
291
292
293
294
# File 'lib/jiraSOAP/remoteEntities.rb', line 286

def self.scheme_with_xml_fragment(frag)
  return if frag.nil?
  scheme             = Scheme.new
  scheme.id          = frag.xpath('id').to_s
  scheme.name        = frag.xpath('name').to_s
  scheme.type        = frag.xpath('type').to_s
  scheme.description = frag.xpath('description').to_s
  scheme
end