Skip to content

Instantly share code, notes, and snippets.

@manlycode
Created November 21, 2017 15:46
Show Gist options
  • Save manlycode/1b616cb9068e53b752b02f9f2ffd0f64 to your computer and use it in GitHub Desktop.
Save manlycode/1b616cb9068e53b752b02f9f2ffd0f64 to your computer and use it in GitHub Desktop.
class Account < ActiveRecord::Base
establish_connection Urjanet::Client.config
self.table_name = "Accounts"
alias_attribute :account_number, "AccountNumber"
alias_attribute :due_by_date, "DueByDate"
alias_attribute :total_bill_amount, "TotalBillAmount"
alias_attribute :amount_due, "AmountDue"
alias_attribute :outstanding_balance, "OutstandingBalance"
alias_attribute :source_link, "SourceLink"
alias_attribute :payment_address_street, "PaymentAddressStreet"
alias_attribute :payment_address_city, "PaymentAddressCity"
alias_attribute :payment_address_zip, "PaymentAddressZip"
alias_attribute :utility_provider, "UtilityProvider"
alias_attribute :statement_date, "StatementDate"
alias_attribute :site_code, "SiteCode"
alias_attribute :customer_code, "CustomerCode"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment