Class: Colppy::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/colppy/resource.rb

Direct Known Subclasses

Company, Customer, Product, SellInvoice, User

Constant Summary collapse

VALID_INVOICE_TYPES =
%w(A B C E Z I M X)

Instance Method Summary collapse

Instance Method Details

#inspectObject



31
32
33
34
35
36
# File 'lib/colppy/resource.rb', line 31

def inspect
  formatted_attrs = attr_inspect.map do |attr|
    "#{attr}: #{send(attr).inspect}"
  end
  "#<#{self.class.name} #{formatted_attrs.join(", ")}>"
end