Sha256: 7b085ab04aef6696ffce5ab56e5cc55aaafcfc6c1d9e29162ab6f9cbe194aca0

Contents?: true

Size: 512 Bytes

Versions: 4

Compression:

Stored size: 512 Bytes

Contents

# encoding: utf-8

module TingYun
  module Agent
    class Transaction
      class Attributes

        attr_accessor :agent_attributes, :request_params
        def initialize
          @agent_attributes  = {}
          @request_params = {}
        end

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

        def merge_request_parameters(hash)
          @request_params.merge!(hash) if hash
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tingyun_rpm-1.1.4.2 lib/ting_yun/agent/transaction/attributes.rb
tingyun_rpm-1.1.4.1 lib/ting_yun/agent/transaction/attributes.rb
tingyun_rpm-1.1.4 lib/ting_yun/agent/transaction/attributes.rb
tingyun_rpm-1.1.3 lib/ting_yun/agent/transaction/attributes.rb