Sha256: f8cb98d8cc30091e776496b88eea8702e87c6e2d9d8d0ae5348cb9d016d8fe60

Contents?: true

Size: 283 Bytes

Versions: 5

Compression:

Stored size: 283 Bytes

Contents

module TrackerApi
  module Endpoints
    class Me
      attr_accessor :client

      def initialize(client)
        @client = client
      end

      def get
        data = client.get("/me").body

        Resources::Me.new({ client: client }.merge(data))
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tracker_api-0.2.6 lib/tracker_api/endpoints/me.rb
tracker_api-0.2.5 lib/tracker_api/endpoints/me.rb
tracker_api-0.2.4 lib/tracker_api/endpoints/me.rb
tracker_api-0.2.3 lib/tracker_api/endpoints/me.rb
tracker_api-0.2.2 lib/tracker_api/endpoints/me.rb