Sha256: cb29c457253060f1571cdc2ef7aee917d2c4331cc9576eabc5164aaa7fd88799

Contents?: true

Size: 440 Bytes

Versions: 16

Compression:

Stored size: 440 Bytes

Contents

module YouGotListed
  class Resource

    attr_accessor :client

    def initialize(client)
      self.client = client
    end

    def process_get(path, params = {}, raise_error = false)
      Response.new(self.client.perform_request(:get, path, params), raise_error)
    end

    def process_post(path, params = {}, raise_error = false)
      Response.new(self.client.perform_request(:post, path, params), raise_error)
    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
you_got_listed-0.7.2 lib/you_got_listed/resource.rb
you_got_listed-0.7.1 lib/you_got_listed/resource.rb
you_got_listed-0.7.0 lib/you_got_listed/resource.rb
you_got_listed-0.6.6 lib/you_got_listed/resource.rb
you_got_listed-0.6.5 lib/you_got_listed/resource.rb
you_got_listed-0.6.4 lib/you_got_listed/resource.rb
you_got_listed-0.6.3 lib/you_got_listed/resource.rb
you_got_listed-0.6.2 lib/you_got_listed/resource.rb
you_got_listed-0.6.1 lib/you_got_listed/resource.rb
you_got_listed-0.6.0 lib/you_got_listed/resource.rb
you_got_listed-0.5.1 lib/you_got_listed/resource.rb
you_got_listed-0.5.0 lib/you_got_listed/resource.rb
you_got_listed-0.4.0 lib/you_got_listed/resource.rb
you_got_listed-0.3.6 lib/you_got_listed/resource.rb
you_got_listed-0.3.5 lib/you_got_listed/resource.rb
you_got_listed-0.3.4 lib/you_got_listed/resource.rb