Class: Payflow::Subscription

Inherits:
ApplicationRecord show all
Defined in:
app/models/payflow/subscription.rb

Instance Method Summary collapse

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'app/models/payflow/subscription.rb', line 20

def active?
  status == "active"
end

#cancelled?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'app/models/payflow/subscription.rb', line 28

def cancelled?
  status == "cancelled"
end

#overdue?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'app/models/payflow/subscription.rb', line 24

def overdue?
  status == "overdue"
end