Class: NtqExcelsior::Context

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/ntq_excelsior/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#successObject

Returns the value of attribute success.



5
6
7
# File 'lib/ntq_excelsior/context.rb', line 5

def success
  @success
end

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/ntq_excelsior/context.rb', line 11

def error?
  !@success.nil? && !@success
end

#success?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/ntq_excelsior/context.rb', line 7

def success?
  @success.nil? || @success
end