Class: Dibuk::Response::Sent
- Inherits:
-
Base
- Object
- Base
- Dibuk::Response::Sent
show all
- Defined in:
- lib/dibuk/response/sent.rb
Constant Summary
collapse
- SUCCESS_HTTP_STATUSES =
[200].freeze
- SUCCESS_STATUSES =
[
'OK'
].freeze
- WRONG_EMAIL_CODES =
[
'2010', '2011', ].freeze
- NOT_AVAILABLE_FORMAT_CODES =
[
'2012', '2022', ].freeze
Instance Method Summary
collapse
Methods inherited from Base
#body, #error?, #error_code, #error_data, #http_status_ok, #limit_exceeded?, #not_buyed?, #success?
Instance Method Details
22
23
24
|
# File 'lib/dibuk/response/sent.rb', line 22
def not_available_format?
self.class::NOT_AVAILABLE_FORMAT_CODES.include?(status)
end
|
#wrong_email? ⇒ Boolean
18
19
20
|
# File 'lib/dibuk/response/sent.rb', line 18
def wrong_email?
self.class::WRONG_EMAIL_CODES.include?(status)
end
|