Class: DataManager

Inherits:
Object
  • Object
show all
Defined in:
lib/spec/fake_server.rb

Class Method Summary collapse

Class Method Details

.claim_errorsObject



53
54
55
# File 'lib/spec/fake_server.rb', line 53

def claim_errors
  @claim_errors ||= claim_errors_memo.dup
end

.claim_errors_memoObject



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/spec/fake_server.rb', line 20

def claim_errors_memo
  { 1 => {
      error_message: 'Send to optimis.duxware.com failed with ERROR: Did not find this ICD code in DB: 729.90',
      external_id: 3,
      id: 1,
      message_body: '<?xml version="1.0" encoding="UTF-8"?><incomingHeader></incomingHeader>',
      record_id: 43334,
      resent_at: nil,
      created_at: "2013-06-13T16:17:02Z",
      updated_at: "2013-06-13T16:17:02Z"
    },
    2 => {
      error_message: 'Send to optimis.duxware.com failed with ERROR: Did not find this ICD code in DB: 729.91',
      external_id: 4,
      id: 2,
      message_body: '<?xml version="1.0" encoding="UTF-8"?><incomingHeader></incomingHeader>',
      record_id: 43335,
      resent_at: nil,
      created_at: "2013-06-13T16:17:02Z",
      updated_at: "2013-06-13T16:17:02Z"
    }
  }
end

.practicesObject



44
45
46
# File 'lib/spec/fake_server.rb', line 44

def practices
  @practices ||= practices_memo.dup
end

.practices_memoObject



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/spec/fake_server.rb', line 6

def practices_memo
  { 1 => {
      id: 1,
      export_url: "https://optimis.duxware.com",
      external_id: 3,
      token: "12345",
      migrated_at: nil,
      billing: true,
      created_at: "2013-07-16T01:16:45Z",
      updated_at: "2013-07-16T01:16:45Z"
    }
  }
end

.resetObject



48
49
50
51
# File 'lib/spec/fake_server.rb', line 48

def reset
  @claim_errors = claim_errors_memo.dup
  @practices = practices_memo.dup
end