Sha256: 09811d147bbb93630bbd21f90587f056c30660790d08f792d0339709a5ce44f7

Contents?: true

Size: 477 Bytes

Versions: 4

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

require 'avm/instances/entries'
require 'eac_ruby_utils/core_ext'

module Avm
  module Applications
    class Base
      include ::Avm::Instances::Entries

      common_constructor :id do
        self.id = id.to_s
      end

      def to_s
        id
      end

      def instance(suffix)
        ::Avm::Instances::Base.new(self, suffix)
      end

      def name
        entry(::Avm::Instances::EntryKeys::NAME).read
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
avm-0.28.0 lib/avm/applications/base.rb
eac_tools-0.10.0 sub/avm/lib/avm/applications/base.rb
avm-0.27.0 lib/avm/applications/base.rb
eac_tools-0.9.0 sub/avm/lib/avm/applications/base.rb