Sha256: f70e917546a658241c39ccafbfca13bccfa3000df3852bd32e4eade362de7739
Contents?: true
Size: 603 Bytes
Versions: 8
Compression:
Stored size: 603 Bytes
Contents
module Megam class Gogs # GET /accounts #Yet to be tested def get_accounts(uname) @options = {:path => "/users/:uname", :body => ''}.merge(@options) request( :expects => 200, :method => :get, :body => @options[:body] ) end # The body content needs to be a json. def post_accounts(json_hash) @options = {:path => '/users.json', :body => json_hash[:json]}.merge(@options) request( :expects => 201, :method => :post, :body => @options[:body] ) end end end
Version data entries
8 entries across 8 versions & 1 rubygems