Module: CorreiosSigep::DSL::Object
- Included in:
- Builders::Object
- Defined in:
- lib/correios_sigep/dsl/object.rb
Class Method Summary collapse
Class Method Details
.included(_base) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/correios_sigep/dsl/object.rb', line 4 def self.included(_base) %w(description id item num ship).each do |property| define_method(property) do |param| @instance.send("#{property}=", param) end end end |