Sha256: cd096440ba2fea72181e1944ff3ffccf931e515097dc8fc0954165f1db71a714

Contents?: true

Size: 296 Bytes

Versions: 2

Compression:

Stored size: 296 Bytes

Contents

class TentClient
  class Profile
    attr_accessor :client

    def initialize(client)
      @client = client
    end

    def update(type, data)
      @client.http.put "profile/#{URI.encode_www_form_component(type)}", data
    end

    def get
      @client.http.get 'profile'
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
tent-client-joebadmo-0.0.1 lib/tent-client/profile.rb
tent-client-0.0.1 lib/tent-client/profile.rb