Sha256: b9e6a087780ed82b8e35f4a8553265aaa4fd7f82dd72e5e74cbe258c9500f137
Contents?: true
Size: 1.06 KB
Versions: 7
Compression:
Stored size: 1.06 KB
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 :canceled_date has_many :events, Kaui::Event def initialize(data = {}) super(:subscription_id => data['subscriptionId'] || data['subscription_id'], :bundle_id => data['bundleId'] || data['bundle_id'], :product_category => data['productCategory'] || data['product_category'], :product_name => data['productName'] || data['product_name'], :billing_period => data['billingPeriod'] || data['billing_period'], :charged_through_date => data['chargedThroughDate'] || data['charged_through_date'], :price_list => data['priceList'] || data['price_list'], :start_date => data['startDate'] || data['start_date'], :canceled_date => data['cancelledDate'] || data['canceled_date'], :events => data['events']) end end
Version data entries
7 entries across 7 versions & 1 rubygems