Class: DashOverlord::Entities::Base

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/dash_overlord/entities/base.rb

Direct Known Subclasses

V1::Base

Instance Method Summary collapse

Instance Method Details

#assign_attributes(attributes) ⇒ Object



7
8
9
# File 'lib/dash_overlord/entities/base.rb', line 7

def assign_attributes(attributes)
  attributes.each { |key, value| send("#{key}=", value) }
end