class XeroRuby::Files::ObjectType

Constants

ACCOUNT
ACCPAY
ACC_PAY_CREDIT
ACC_PAY_PAYMENT
ACC_REC
ACC_REC_CREDIT
ACC_REC_PAYMENT
ADJUSTMENT
AP_CREDIT_PAYMENT
AP_OVER_PAYMENT
AP_OVER_PAYMENT_PAYMENT
AP_OVER_PAYMENT_SOURCE_PAYMENT
AP_PREPAYMENT
AP_PREPAYMENT_PAYMENT
AP_PREPAYMENT_SOURCE_PAYMENT
AR_CREDIT_PAYMENT
AR_OVERPAYMENT_PAYMENT
AR_OVERPAYMENT_SOURCE_PAYMENT
AR_OVER_PAYMENT
AR_PREPAYMENT
AR_PREPAYMENT_PAYMENT
AR_PREPAYMENT_SOURCE_PAYMENT
BANK
BUSINESS
CASH_PAID
CASH_REC
CONTACT
CURRENT
CURRLIAB
DEPRECIATN
DIRECT_COSTS
EMPLOYEE
EQUITY
EXPENSE
EXP_PAYMENT
FIXED
FIXED_ASSET
LIABILITY
MAN_JOURNAL
NON_CURRENT
ORG
OTHER_INCOME
OVERHEADS
PAY_RUN
PERSON
PREPAYMENT
PRICE_LIST_ITEM
PURCHASE_ORDER
RECEIPT
REVENUE
SALES
TERMLIAB
TRANSFER
UNKNOWN
USER

Public Class Methods

build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# File lib/xero-ruby/models/files/object_type.rb, line 76
def self.build_from_hash(value)
  new.build_from_hash(value)
end

Public Instance Methods

build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# File lib/xero-ruby/models/files/object_type.rb, line 83
def build_from_hash(value)
  constantValues = ObjectType.constants.select { |c| ObjectType::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #ObjectType" if constantValues.empty?
  value
end