Sha256: 804636673064c25a4dfc1056a72709cfcc8e12c04bbe87b29066c02135619296

Contents?: true

Size: 334 Bytes

Versions: 2

Compression:

Stored size: 334 Bytes

Contents

module RubyAMI
  class Error < StandardError
    attr_accessor :message, :action

    def initialize
      @headers = HashWithIndifferentAccess.new
    end

    def [](key)
      @headers[key]
    end

    def []=(key,value)
      @headers[key] = value
    end

    def action_id
      @headers['ActionID']
    end
  end
end # RubyAMI

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby_ami-0.1.2 lib/ruby_ami/error.rb
ruby_ami-0.1.1 lib/ruby_ami/error.rb