Sha256: 7f35ce9d45a99d1b5ab1deb28ffccdb3192d9e66f71e11b0a95b44ceaa827551

Contents?: true

Size: 401 Bytes

Versions: 25

Compression:

Stored size: 401 Bytes

Contents

module Isomorfeus
  module Puppetmaster
    class Request
      def initialize(request_hash = {})
        @request_hash = request_hash ? request_hash : {}
      end

      def method_missing(name, *args)
        if %i[failure headers method post_data resource_type url].include?(name)
          @request_hash[name.to_s]
        else
          super(name, *args)
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
isomorfeus-puppetmaster-0.5.5 lib/isomorfeus/puppetmaster/request.rb
isomorfeus-puppetmaster-0.5.4 lib/isomorfeus/puppetmaster/request.rb
isomorfeus-puppetmaster-0.5.3 lib/isomorfeus/puppetmaster/request.rb
isomorfeus-puppetmaster-0.5.2 lib/isomorfeus/puppetmaster/request.rb
isomorfeus-puppetmaster-0.5.1 lib/isomorfeus/puppetmaster/request.rb
isomorfeus-puppetmaster-0.5.0 lib/isomorfeus/puppetmaster/request.rb
isomorfeus-puppetmaster-0.4.1 lib/isomorfeus/puppetmaster/request.rb
isomorfeus-puppetmaster-0.4.0 lib/isomorfeus/puppetmaster/request.rb
isomorfeus-puppetmaster-0.3.5 lib/isomorfeus/puppetmaster/request.rb
isomorfeus-puppetmaster-0.3.4 lib/isomorfeus/puppetmaster/request.rb
isomorfeus-puppetmaster-0.3.3 lib/isomorfeus/puppetmaster/request.rb
isomorfeus-puppetmaster-0.3.2 lib/isomorfeus/puppetmaster/request.rb
isomorfeus-puppetmaster-0.3.1 lib/isomorfeus/puppetmaster/request.rb
isomorfeus-puppetmaster-0.3.0 lib/isomorfeus/puppetmaster/request.rb
isomorfeus-puppetmaster-0.2.9 lib/isomorfeus/puppetmaster/request.rb
isomorfeus-puppetmaster-0.2.8 lib/isomorfeus/puppetmaster/request.rb
isomorfeus-puppetmaster-0.2.7 lib/isomorfeus/puppetmaster/request.rb
isomorfeus-puppetmaster-0.2.6 lib/isomorfeus/puppetmaster/request.rb
isomorfeus-puppetmaster-0.2.5 lib/isomorfeus/puppetmaster/request.rb
isomorfeus-puppetmaster-0.2.4 lib/isomorfeus/puppetmaster/request.rb