Sha256: ccb9c71c6b30199e99e8b8634ce993b2bd266b1b5f54a28fb31b6dc35ab055ed

Contents?: true

Size: 776 Bytes

Versions: 2

Compression:

Stored size: 776 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

2 entries across 2 versions & 1 rubygems

Version Path
oneaccess-1.3.1 lib/oneaccess/data_object/representer/industry.rb
oneaccess-1.3.0 lib/oneaccess/data_object/representer/industry.rb