Class: Barker::Api::Response::Base
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Barker::Api::Response::Base
- Defined in:
- lib/barker/api/response/base.rb
Direct Known Subclasses
Candidate, CandidateAnswer, CandidateJoker, CandidateQuestion, Error, GameShow, Joker, Round
Instance Method Summary collapse
Instance Method Details
#error? ⇒ Boolean
8 9 10 |
# File 'lib/barker/api/response/base.rb', line 8 def error? !!error end |
#ok? ⇒ Boolean
12 13 14 |
# File 'lib/barker/api/response/base.rb', line 12 def ok? !error? end |