Class: NeverBounce::API::Response::CreditsInfo::Base
- Inherits:
-
NeverBounce::API::Response::Container
- Object
- Base
- NeverBounce::API::Response::Container
- NeverBounce::API::Response::CreditsInfo::Base
- Defined in:
- lib/never_bounce/api/response/credits_info/base.rb
Instance Attribute Summary collapse
Attributes inherited from NeverBounce::API::Response::Container
Instance Method Summary collapse
-
#monthly? ⇒ Boolean
true
if monthly subscription. -
#paid? ⇒ Boolean
true
if paid subscription. -
#subscription_type ⇒ Symbol
:monthly
or:paid
.
Methods inherited from NeverBounce::API::Response::Container
Instance Attribute Details
#free_credits_remaining ⇒ Integer
8 |
# File 'lib/never_bounce/api/response/credits_info/base.rb', line 8 oattr :free_credits_remaining, :scalar, type: :integer |
#free_credits_used ⇒ Integer
12 |
# File 'lib/never_bounce/api/response/credits_info/base.rb', line 12 oattr :free_credits_used, :scalar, type: :integer |
Instance Method Details
#monthly? ⇒ Boolean
true
if monthly subscription.
21 22 23 |
# File 'lib/never_bounce/api/response/credits_info/base.rb', line 21 def monthly? subscription_type == :monthly end |
#paid? ⇒ Boolean
true
if paid subscription.
26 27 28 |
# File 'lib/never_bounce/api/response/credits_info/base.rb', line 26 def paid? subscription_type == :paid end |
#subscription_type ⇒ Symbol
:monthly
or :paid
.
16 17 18 |
# File 'lib/never_bounce/api/response/credits_info/base.rb', line 16 def subscription_type raise NotImplementedError, "Redefine `subscription_type` in final class: #{self.class}" end |