Class: JIRA::Scheme
- Inherits:
-
Object
- Object
- JIRA::Scheme
- 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
Instance Attribute Summary collapse
Class Method Summary collapse
-
.scheme_with_xml_fragment(frag) ⇒ JIRA::Scheme?
Factory method that takes a fragment of a SOAP response.
Instance Attribute Details
#description ⇒ String
281 282 283 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 281 def description @description end |
#id ⇒ String
275 276 277 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 275 def id @id end |
#name ⇒ String
277 278 279 |
# File 'lib/jiraSOAP/remoteEntities.rb', line 277 def name @name end |
#type ⇒ 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.
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 |