Class: Charging::Domain::Collection

Inherits:
Collection
  • Object
show all
Defined in:
lib/charging/domain.rb

Instance Attribute Summary

Attributes inherited from Collection

#last_response

Instance Method Summary collapse

Methods inherited from Collection

#load_data_with_response!

Constructor Details

#initialize(account, response) ⇒ Collection

Returns a new instance of Collection.



155
156
157
# File 'lib/charging/domain.rb', line 155

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

Instance Method Details

#load_object_with(attributes) ⇒ Object



159
160
161
# File 'lib/charging/domain.rb', line 159

def load_object_with(attributes)
  Domain.load_persisted_domain(attributes, last_response, @account)
end