Class: Kount::Error
- Inherits:
-
AbstractResponse
- Object
- AbstractResponse
- Kount::Error
- Defined in:
- lib/kount/error.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #approved? ⇒ Boolean
-
#initialize(data) ⇒ Error
constructor
A new instance of Error.
- #ok? ⇒ Boolean
- #to_hash ⇒ Object
Constructor Details
#initialize(data) ⇒ Error
7 8 9 |
# File 'lib/kount/error.rb', line 7 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'lib/kount/error.rb', line 5 def data @data end |
Instance Method Details
#approved? ⇒ Boolean
19 20 21 |
# File 'lib/kount/error.rb', line 19 def approved? false end |
#ok? ⇒ Boolean
15 16 17 |
# File 'lib/kount/error.rb', line 15 def ok? false end |
#to_hash ⇒ Object
11 12 13 |
# File 'lib/kount/error.rb', line 11 def to_hash @data end |