dashofcode/tracker_api

View on GitHub
lib/tracker_api/endpoints/me.rb

Summary

Maintainability
A
0 mins
Test Coverage
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(data)
      end
    end
  end
end