Class: TestLink::Adapters::StatusAdapter

Inherits:
Base
  • Object
show all
Defined in:
lib/test_link/adapters/status_adapter.rb

Instance Attribute Summary

Attributes inherited from Base

#response

Instance Method Summary collapse

Methods inherited from Base

#adapt

Instance Method Details

#adapt_row(row) ⇒ Object



22
23
24
25
26
27
28
29
30
# File 'lib/test_link/adapters/status_adapter.rb', line 22

def adapt_row row
  status = Objects::Status.new
  status.id = row['id'].to_i
  status.message = row['message']
  status.status = row['status']
  status.additional_info = row['additionalInfo']
  status.operation = row['operation']
  status
end