Module: Dhl::Bcs::V2::Buildable
- Included in:
- BankData, Communication, ExportDocPosition, ExportDocument, Location, Service
- Defined in:
- lib/dhl/bcs/v2/buildable.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 |
# File 'lib/dhl/bcs/v2/buildable.rb', line 4 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#initialize(**attributes) ⇒ Object
40 41 42 43 44 |
# File 'lib/dhl/bcs/v2/buildable.rb', line 40 def initialize(**attributes) attributes.each do |property, value| send("#{property}=", value) if self.class::PROPERTIES.include?(property) end end |