Module: CorreiosSigep::DSL::LogisticReverse

Included in:
Models::LogisticReverse
Defined in:
lib/correios_sigep/dsl/logistic_reverse.rb

Instance Method Summary collapse

Instance Method Details

#with_collect(&block) ⇒ Object



4
5
6
# File 'lib/correios_sigep/dsl/logistic_reverse.rb', line 4

def with_collect(&block)
  self.collect = Models::Collect.build(&block)
end

#with_recipient(&block) ⇒ Object



8
9
10
# File 'lib/correios_sigep/dsl/logistic_reverse.rb', line 8

def with_recipient(&block)
  self.recipient = Models::Recipient.build(&block)
end