class CorreiosSigep::Models::Recipient

Attributes

address[RW]
area_code[RW]
city[RW]
complement[RW]
email[RW]
name[RW]
neighborhood[RW]
number[RW]
phone[RW]
postal_code[RW]
reference[RW]
state[RW]

Public Class Methods

build(&block) click to toggle source
# File lib/correios_sigep/models/recipient.rb, line 8
def self.build(&block)
  builder = Builders::Person.new(self)
  builder.instance_eval(&block)
  builder.build
end
new(options = {}) click to toggle source
# File lib/correios_sigep/models/recipient.rb, line 14
def initialize(options = {})
  @address      = options[:address]
  @area_code    = options[:area_code]
  @city         = options[:city]
  @complement   = options[:complement]
  @email        = options[:email]
  @name         = options[:name]
  @neighborhood = options[:neighborhood]
  @number       = options[:number]
  @phone        = options[:phone]
  @postal_code  = options[:postal_code]
  @reference    = options[:reference]
  @state        = options[:state]
end