class Economic::Company
Represents a creditor in E-conomic.
API documentation: api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Company_GetData
Examples
# Get company: creditor = economic.company.get
Public Instance Methods
handle()
click to toggle source
# File lib/economic/company.rb, line 33 def handle @handle || Handle.build(:number => @number) end
Protected Instance Methods
fields()
click to toggle source
# File lib/economic/company.rb, line 39 def fields to_hash = proc { |h| h.to_hash } [ ["Handle", :handle, to_hash, :required], ["Number", :number, nil, :required], ["BaseCurrencyHandle", :base_currency_handle, to_hash], ["Name", :name], ["Address1", :address_1], ["Address2", :address_2], ["PostalCode", :postal_code], ["City", :city], ["Country", :country], ["TelephoneNumber", :telephone_number], ["FaxNumber", :fax_number], ["MobileNumber", :mobile_number], ["Contact", :contact], ["WebSite", :website], ["Email", :email], ["CINumber", :c_i_number], ["VatNumber", :vat_number], ["SignUpDate", :sign_up_date] ] end