Sha256: f585ede5dc9a0e3d1a4e67ccc23a1666b0877e694b6790b159c78f21d75424b2
Contents?: true
Size: 955 Bytes
Versions: 9
Compression:
Stored size: 955 Bytes
Contents
module CorreiosSigep module Models class Recipient attr_accessor :address, :area_code, :city, :complement, :email, :name, :neighborhood, :number, :phone, :postal_code, :reference, :state def self.build(&block) builder = Builders::Person.new(self) builder.instance_eval(&block) builder.build end 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 end end end
Version data entries
9 entries across 9 versions & 1 rubygems