Sha256: e7419eca51a1e184e98ca1231b4f38e80981376f1f8f88d53905251f46f01f47

Contents?: true

Size: 639 Bytes

Versions: 2

Compression:

Stored size: 639 Bytes

Contents

module CloudParty
  module Responses
    module Node
      class Meta
        attr_reader :auto_added, :managed_by_apps, :managed_by_argo_tunnel
        def initialize(hsh)
          @entries = []
          hsh.each do |key, value|
            @entries << "#{key}=#{value}"
          end
          auto_added = DateTime.iso8601(hsh.dig(:auto_added))
          managed_by_apps = DateTime.iso8601(hsh.dig(:managed_by_apps))
          managed_by_argo_tunnel = hsh.dig(:managed_by_argo_tunnel)

        end
        def to_s
          "#<Meta: #{@entries}>"
        end
        def inspect
          to_s
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cloud_party-0.1.7 lib/cloud_party/responses/nodes/dns_records/meta.rb
cloud_party-0.1.6 lib/cloud_party/responses/nodes/dns_records/meta.rb