Sha256: ae76ba9aeb10c58b354bfa766f0df6f146f3c1f640508896e6968748d5dd4cde

Contents?: true

Size: 405 Bytes

Versions: 9

Compression:

Stored size: 405 Bytes

Contents

require 'active_model'

class Kaui::Bundle < Kaui::Base
  define_attr :account_id
  define_attr :external_key
  define_attr :bundle_id
  has_many :subscriptions, Kaui::Subscription

  def initialize(data = {})
    super(:external_key => data['externalKey'],
          :bundle_id => data['bundleId'],
          :account_id => data['accountId'],
          :subscriptions => data['subscriptions'])
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kaui-0.0.9 app/models/kaui/bundle.rb
kaui-0.0.8 app/models/kaui/bundle.rb
kaui-0.0.7 app/models/kaui/bundle.rb
kaui-0.0.6 app/models/kaui/bundle.rb
kaui-0.0.5 app/models/kaui/bundle.rb
kaui-0.0.4 app/models/kaui/bundle.rb
kaui-0.0.3 app/models/kaui/bundle.rb
kaui-0.0.2 app/models/kaui/bundle.rb
kaui-0.0.1 app/models/kaui/bundle.rb