Sha256: 41a6df6141aeb8caf8878dfff5fab78b665269fc7fc1a443d79757d91d714a2e

Contents?: true

Size: 863 Bytes

Versions: 1

Compression:

Stored size: 863 Bytes

Contents

class Kaui::Subscription < Kaui::Base
  define_attr :subscription_id
  define_attr :bundle_id
  define_attr :product_category
  define_attr :product_name
  define_attr :billing_period
  define_attr :charged_through_date
  define_attr :price_list
  define_attr :start_date
  define_attr :cancelledDate
  has_many :events, Kaui::Event

  def initialize(data = {})
    super(:subscription_id => data['subscriptionId'],
          :bundle_id => data['bundleId'],
          :product_category => data['productCategory'],
          :product_name => data['productName'],
          :billing_period => data['billingPeriod'],
          :charged_through_date => data['chargedThroughDate'],
          :price_list => data['priceList'],
          :start_date => data['startDate'],
          :cancelledDate => data['cancelledDate'],
          :events => data['events'])
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kaui-0.0.1 app/models/kaui/subscription.rb