Sha256: 38831fbcc60848b85c3be738ec73e8b80044e4fa3e2076d69a9391ac4fcdcf35

Contents?: true

Size: 347 Bytes

Versions: 4

Compression:

Stored size: 347 Bytes

Contents

require 'httpclient'

class GaroonCat::Client

  attr_reader :username
  attr_reader :password

  def initialize(username:nil, password:nil)
    @client = HTTPClient.new
    @username = username
    @password = password
  end

  def get(uri)
    @client.get_content(uri)
  end

  def post(uri, data)
    @client.post_content(uri, data)
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
garoon-cat-0.3.0 lib/garoon-cat/client.rb
garoon-cat-0.2.1 lib/garoon-cat/client.rb
garoon-cat-0.2.0 lib/garoon-cat/client.rb
garoon-cat-0.1.0 lib/garoon-cat/client.rb