Sha256: fade3447e932020b3d1ed2c63ad4fb8ffeb80fdaac3e48e799ac04336e30fded
Contents?: true
Size: 394 Bytes
Versions: 4
Compression:
Stored size: 394 Bytes
Contents
require_relative "./api_caller" module Github class Repository attr_accessor :id, :name, :description, :language def to_s "#{id} : #{name} : #{description} : #{language}" end end class Api < Dialers::Wrapper api_caller { ApiCaller.new } def user_repos(username) api_caller.get("users/#{username}/repos").transform_to_many(Repository) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dialers-0.2.2 | examples/github/api.rb |
dialers-0.1.2 | examples/github/api.rb |
dialers-0.1.1 | examples/github/api.rb |
dialers-0.1.0 | examples/github/api.rb |