Sha256: 87d676c1cf571962cee4c7ffdd394fe3807512c5f324cd7f58d7aef0f0f3bb3f

Contents?: true

Size: 396 Bytes

Versions: 2

Compression:

Stored size: 396 Bytes

Contents

# encoding: utf-8

module TingYun
  module Agent
    class Transaction
      class Attributes

        attr_accessor :agent_attributes
        def initialize
          @agent_attributes  = {}
          @custom_attributes = {}
        end

        def add_agent_attribute(key, value)
          return if value.nil?
          @agent_attributes[key] = value
        end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tingyun_rpm-1.0.7 lib/ting_yun/agent/transaction/attributes.rb
tingyun_rpm-1.0.6 lib/ting_yun/agent/transaction/attributes.rb