class AcceptOn::Subscription

Attributes

active[R]

@attr_reader active [Boolean] The activity status of the subscription @attr_reader email [String] The email belonging to the subscription @attr_reader id [String] The subscription identifier

@api public

active?[R]

@attr_reader active [Boolean] The activity status of the subscription @attr_reader email [String] The email belonging to the subscription @attr_reader id [String] The subscription identifier

@api public

email[R]

@attr_reader active [Boolean] The activity status of the subscription @attr_reader email [String] The email belonging to the subscription @attr_reader id [String] The subscription identifier

@api public

id[R]

@attr_reader active [Boolean] The activity status of the subscription @attr_reader email [String] The email belonging to the subscription @attr_reader id [String] The subscription identifier

@api public

Public Instance Methods

last_billed_at() click to toggle source

The time the subscription was last billed

@api public

@return [Time]

# File lib/accepton/subscription.rb, line 17
def last_billed_at
  Time.parse(@last_billed_at).utc unless @last_billed_at.nil?
end
plan() click to toggle source

The plan the subscription is connected to

@api public

@return [AcceptOn::Plan]

# File lib/accepton/subscription.rb, line 26
def plan
  AcceptOn::Plan.new(@plan)
end