Sha256: dc9088850552336d5afc6b69288edfc6d15f9ceb3a8cb35ddf3092135a6466bf

Contents?: true

Size: 295 Bytes

Versions: 1

Compression:

Stored size: 295 Bytes

Contents

module OnlinegamesInfoConnect
	module OauthMedals
		def add_medal(user, medal_id, level)
			return user.token.post("/api/medals/#{user.id}", {body: {medal_id: medal_id, level: level}}).parsed
		end

		def get_medals(user)
			return user.token.get("/api/medals/#{user.id}").parsed
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
onlinegames_info_connect-0.0.1 lib/onlinegames_info_connect/oauth_medals.rb