class Moyasar::Invoice

Attributes

amount[RW]
amount_format[R]
created_at[R]
currency[RW]
description[RW]
id[R]
metadata[R]
payments[R]
status[R]
updated_at[R]
url[R]

Public Instance Methods

==(other) click to toggle source
# File lib/moyasar/invoice.rb, line 8
def ==(other)
  return false unless other.is_a? Invoice

  [:id, :status, :description, :amount, :currency,  :url, :created_at, :updated_at].all? do |attr|
    self.send(attr) == other.send(attr)
  end
end