Class: Charging::ChargeAccount::Collection

Inherits:
Charging::Collection show all
Defined in:
lib/charging/charge_account.rb

Instance Attribute Summary

Attributes inherited from Charging::Collection

#last_response

Instance Method Summary collapse

Methods inherited from Charging::Collection

#load_data_with_response!

Constructor Details

#initialize(domain, response) ⇒ Collection

Returns a new instance of Collection.



160
161
162
# File 'lib/charging/charge_account.rb', line 160

def initialize(domain, response)
  super(response, domain: domain)
end

Instance Method Details

#load_object_with(attributes) ⇒ Object



164
165
166
# File 'lib/charging/charge_account.rb', line 164

def load_object_with(attributes)
  ChargeAccount.(attributes, last_response, @domain)
end