class EdiParser::Invoice

Attributes

number[RW]

@return [Integer] the invoice number.

series[RW]

@return [String] the invoice series.

Public Class Methods

new(attributes = {}) click to toggle source
# File lib/edi_parser/invoice.rb, line 10
def initialize(attributes = {})
  attributes.each do |key, value|
    __send__("#{key}=", value)
  end
end

Public Instance Methods

==(another) click to toggle source
# File lib/edi_parser/invoice.rb, line 16
def ==(another)
  return false unless another.respond_to?(:number) && another.respond_to?(:series)
  number == another.number && series == another.series
end