Sha256: 3c4ed72a23071b20253d7dd4637610ec893655b70bac6106890dcbe853880faa

Contents?: true

Size: 571 Bytes

Versions: 2

Compression:

Stored size: 571 Bytes

Contents

# frozen_string_literal: true
module Qravan
  module Credentials
    # System credentials
    class System
      attr_accessor :credentials

      def initialize(credentials)
        @credentials = credentials["system"]
      end

      def prepare
        {
          mnemonic: mnemonic,
          instance_id: instance,
          user_id: user
        }
      end

      def mnemonic
        @credentials["mnemonic"]
      end

      def instance
        @credentials["instance_id"]
      end

      def user
        @credentials["user_id"]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qravan-0.1.1 lib/qravan/credentials/system.rb
qravan-0.1.0 lib/qravan/credentials/system.rb