Sha256: c158da4a1b8ebc8f0e9debc97ed38051a25b25d6aaa0f5fe2d7d22bf9580cf4f

Contents?: true

Size: 294 Bytes

Versions: 39

Compression:

Stored size: 294 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
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
meducation_sdk-1.6.10 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.6.6 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.6.5 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.6.4 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.6.3 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.6.2 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.6.1 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.6.0 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.5.7 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.5.6 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.5.5 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.5.4 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.5.3 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.5.2 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.5.1 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.5.0 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.4.4 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.4.3 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.4.2 lib/meducation_sdk/resources/badges/badge.rb