Class: BraspagRest::FraudAnalysis

Inherits:
Hashie::IUTrash show all
Includes:
Hashie::Extensions::Coercion
Defined in:
lib/braspag-rest/fraud_analysis.rb

Constant Summary collapse

STATUS_ACCEPTED =
1
STATUS_REJECTED =
2

Instance Method Summary collapse

Methods inherited from Hashie::IUTrash

#inverse_attributes

Instance Method Details

#accepted?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/braspag-rest/fraud_analysis.rb', line 36

def accepted?
  status.to_i.eql?(STATUS_ACCEPTED)
end

#rejected?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/braspag-rest/fraud_analysis.rb', line 40

def rejected?
  status.to_i.eql?(STATUS_REJECTED)
end