Sha256: f121864d000efedf01270dd18228e489a0bf05124fe103e877e91a878bba044d
Contents?: true
Size: 434 Bytes
Versions: 2
Compression:
Stored size: 434 Bytes
Contents
module MeducationSDK module Badges class Badge < Loquor::Resource def self.issue_or_update_progress(user_id) Loquor.put("#{self.path}/issue_or_update_progress", {user_id: user_id}) end def user @user ||= User.find(user_id) end end class BadgeMock < Badge extend Loquor::ResourceMock self.attributes = { id: 1, user_id: 1 } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
meducation_sdk-1.4.1 | lib/meducation_sdk/resources/badges/badge.rb |
meducation_sdk-1.4.0 | lib/meducation_sdk/resources/badges/badge.rb |