Sha256: 4f7896a63ec553f7978e582f8a14c48eac7a298b05f77f041428cf4f8305bb13

Contents?: true

Size: 553 Bytes

Versions: 8

Compression:

Stored size: 553 Bytes

Contents

module BillForward
  # This entity exposes the following child entities via method_missing:
  # 
  # Role[]           .roles
  # PaymentMethod[]  .paymentMethods
  # Profile          .profile
  class Account < MutableEntity
  	@resource_path = BillForward::ResourcePath.new("accounts", "account")

  protected
    def unserialize_all(hash)
      super
      unserialize_entity('profile', Profile, hash)

      unserialize_array_of_entities('roles', Role, hash)
      unserialize_array_of_entities('paymentMethods', PaymentMethod, hash)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bill_forward-1.2016.26 lib/bill_forward/entities/account.rb
bill_forward-1.2015.321.1 lib/bill_forward/entities/account.rb
bill_forward-1.2015.321 lib/bill_forward/entities/account.rb
bill_forward-1.2015.299 lib/bill_forward/entities/account.rb
bill_forward-1.2015.217.1 lib/bill_forward/entities/account.rb
bill_forward-1.2015.217 lib/bill_forward/entities/account.rb
bill_forward-1.2015.186 lib/bill_forward/entities/account.rb
bill_forward-1.2015.183 lib/bill_forward/entities/account.rb