Class: WfsRails::ProcessParser

Inherits:
Object
  • Object
show all
Defined in:
lib/wfs_rails/process_parser.rb

Overview

Parsing Process creation request

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(process) ⇒ ProcessParser

Returns a new instance of ProcessParser.

Parameters:

  • process (Nokogiri::XML::Element)


9
10
11
# File 'lib/wfs_rails/process_parser.rb', line 9

def initialize(process)
  @process = process
end

Instance Attribute Details

#processObject (readonly)

Returns the value of attribute process.



5
6
7
# File 'lib/wfs_rails/process_parser.rb', line 5

def process
  @process
end

Instance Method Details

#lane_idObject



21
22
23
# File 'lib/wfs_rails/process_parser.rb', line 21

def lane_id
  process.attr('laneId')
end

#lifecycleObject



25
26
27
# File 'lib/wfs_rails/process_parser.rb', line 25

def lifecycle
  process.attr('lifecycle')
end

#nameObject



13
14
15
# File 'lib/wfs_rails/process_parser.rb', line 13

def name
  process.attr('name')
end

#statusObject



17
18
19
# File 'lib/wfs_rails/process_parser.rb', line 17

def status
  process.attr('status')
end