class CorreiosSigep::Models::Product

Attributes

code[RW]
quantity[RW]
type[RW]

Public Class Methods

build(&block) click to toggle source
# File lib/correios_sigep/models/product.rb, line 6
def self.build(&block)
  builder = Builders::Product.new
  builder.instance_eval(&block)
  builder.build
end
new(options={}) click to toggle source
# File lib/correios_sigep/models/product.rb, line 12
def initialize(options={})
  @code     = options[:code]
  @type     = options[:type]
  @quantity = options[:quantity]
end