Class: OJAD::Result
- Inherits:
-
Object
- Object
- OJAD::Result
- Defined in:
- lib/ojad/result.rb
Instance Method Summary collapse
-
#initialize(response) ⇒ Result
constructor
A new instance of Result.
- #to_human ⇒ Object
Constructor Details
#initialize(response) ⇒ Result
Returns a new instance of Result.
7 8 9 |
# File 'lib/ojad/result.rb', line 7 def initialize(response) @response = response end |
Instance Method Details
#to_human ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/ojad/result.rb', line 11 def to_human if response.success? verbs_for_human else end end |