Sha256: 80fcafb3f1b3eb43d72e4f8ead46c664b2127d7cdda8436320806a53ce94389a

Contents?: true

Size: 460 Bytes

Versions: 10

Compression:

Stored size: 460 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

10 entries across 10 versions & 1 rubygems

Version Path
you_got_listed-0.3.3 lib/you_got_listed/resource.rb
you_got_listed-0.3.2 lib/you_got_listed/resource.rb
you_got_listed-0.3.1 lib/you_got_listed/resource.rb
you_got_listed-0.3.0 lib/you_got_listed/resource.rb
you_got_listed-0.2.5 lib/you_got_listed/resource.rb
you_got_listed-0.2.4 lib/you_got_listed/resource.rb
you_got_listed-0.2.3 lib/you_got_listed/resource.rb
you_got_listed-0.2.2 lib/you_got_listed/resource.rb
you_got_listed-0.2.1 lib/you_got_listed/resource.rb
you_got_listed-0.2.0 lib/you_got_listed/resource.rb