Sha256: b04251e32c10850e60f1b39c57eff036837d26bbab603b158b40c79f7ab38890

Contents?: true

Size: 355 Bytes

Versions: 2

Compression:

Stored size: 355 Bytes

Contents

require_relative 'base'

module Amsi
  module Model
    class LeasingAgent < Base
      string_attrs *%i[
        agent_active_flag
        agent_code
        agent_name
        property_id
      ]

      alias_method :code, :agent_code
      alias_method :name, :agent_name

      def active?
        agent_active_flag == 'Y'
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
amsi-1.0.1 lib/amsi/model/leasing_agent.rb
amsi-1.0.0 lib/amsi/model/leasing_agent.rb