Sha256: 08ada70638eb31b2ae901cb5b2972b1ea1e903dcf24157a85272480bd302f22b

Contents?: true

Size: 262 Bytes

Versions: 1

Compression:

Stored size: 262 Bytes

Contents

module MonkeyParty
  class Error < Exception
    include HappyMapper

    tag 'MCAPI'
    element :message, String, :tag => "error"
    element :code, Integer

    def to_h
      {
        :message => message,
        :code    => code
      }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
monkey_party-0.3.2 lib/monkey_party/error.rb