Sha256: 1cc2df74d61358276f064c0251b37bdb64f186b1e7d06030f609096bd6336d35

Contents?: true

Size: 766 Bytes

Versions: 7

Compression:

Stored size: 766 Bytes

Contents

require 'xeroizer/record/base_model_http_proxy'

module Xeroizer
  module Record
    
    class PayrollBaseModel < Xeroizer::Record::BaseModel

      class_inheritable_attributes :api_controller_name
      class_inheritable_attributes :permissions
      class_inheritable_attributes :xml_root_name
      class_inheritable_attributes :optional_xml_root_name
      class_inheritable_attributes :xml_node_name
      
      include BaseModelHttpProxy

      public
        
        def model_class
          @model_class ||= Xeroizer::Record::Payroll.const_get(model_name.to_sym)
        end

        def parse_response(response_xml, options = {})
          super(response_xml, {:base_module => Xeroizer::Record::Payroll}.merge(options))
        end

    end

  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
xeroizer-3.0.1 lib/xeroizer/record/payroll_base_model.rb
xeroizer-3.0.0 lib/xeroizer/record/payroll_base_model.rb
xeroizer-3-pre-beta-3.0.0.pre.beta lib/xeroizer/record/payroll_base_model.rb
xeroizer-2.20.0 lib/xeroizer/record/payroll_base_model.rb
xeroizer-2.19.0 lib/xeroizer/record/payroll_base_model.rb
xeroizer-2.18.1 lib/xeroizer/record/payroll_base_model.rb
xeroizer-2.17.1 lib/xeroizer/record/payroll_base_model.rb