Sha256: bbb3a803f8d8bb1d3bd45e1f6b00844ea2daede73cb8bee623df067d1cccbe1a

Contents?: true

Size: 755 Bytes

Versions: 13

Compression:

Stored size: 755 Bytes

Contents

# frozen_string_literal: true
require_relative "../industry"

# declare industry to avoid circular dependency
# rubocop:disable Style/ClassAndModuleChildren
class ONEAccess::DataObject::Industry; end
class ONEAccess::DataObject::Representer::Industry < Representable::Decorator; end
# rubocop:enable Style/ClassAndModuleChildren

module ONEAccess
  module DataObject
    module Representer
      class Industry < Representable::Decorator
        include Representable::JSON

        property :id, as: :Id, type: Integer
        property :name, as: :Name, type: String
        property :code, as: :Code, type: String
        property :parent, as: :Parent,
          decorator: Representer::Industry, class: DataObject::Industry
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
oneaccess-0.4.4 lib/oneaccess/data_object/representer/industry.rb
oneaccess-0.4.3 lib/oneaccess/data_object/representer/industry.rb
oneaccess-0.4.2 lib/oneaccess/data_object/representer/industry.rb
oneaccess-0.4.1 lib/oneaccess/data_object/representer/industry.rb
oneaccess-0.4.0 lib/oneaccess/data_object/representer/industry.rb
oneaccess-0.3.0 lib/oneaccess/data_object/representer/industry.rb
oneaccess-0.2.0 lib/oneaccess/data_object/representer/industry.rb
oneaccess-0.1.9 lib/oneaccess/data_object/representer/industry.rb
oneaccess-0.1.8 lib/oneaccess/data_object/representer/industry.rb
oneaccess-0.1.7 lib/oneaccess/data_object/representer/industry.rb
oneaccess-0.1.6 lib/oneaccess/data_object/representer/industry.rb
oneaccess-0.1.5 lib/oneaccess/data_object/representer/industry.rb
oneaccess-0.1.4 lib/oneaccess/data_object/representer/industry.rb