Module: Irrc::QueryStatus

Included in:
Query
Defined in:
lib/irrc/query_status.rb

Instance Method Summary collapse

Instance Method Details

#failObject



3
4
5
# File 'lib/irrc/query_status.rb', line 3

def fail
  @failed = true
end

#failed?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/irrc/query_status.rb', line 11

def failed?
  @failed == true
end

#succeeded?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/irrc/query_status.rb', line 15

def succeeded?
  @failed == false
end

#successObject



7
8
9
# File 'lib/irrc/query_status.rb', line 7

def success
  @failed = false
end