Class: Kaui::Bundle
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Bundle
constructor
A new instance of Bundle.
Methods inherited from Base
#==, all, #attributes=, camelize, convert_hash_keys, count, define_attr, #destroy, find, from_json, has_many, has_one, human_attribute_name, lookup_ancestors, #new_record?, #persisted?, #read_attribute_for_validation, #save, #to_hash, to_money, #to_param, #update_attributes
Constructor Details
#initialize(data = {}) ⇒ Bundle
Returns a new instance of Bundle.
9 10 11 12 13 14 15 |
# File 'app/models/kaui/bundle.rb', line 9 def initialize(data = {}) super(:external_key => data['externalKey'], :bundle_id => data['bundleId'], :account_id => data['accountId'], :subscriptions => data['subscriptions'], :audit_logs => data['auditLogs']) end |