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-2.2.2 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-2.2.1 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-2.2.0 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-2.1.4 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-2.1.3 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-2.1.2 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-2.1.1 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-2.1.0 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-2.0.5 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-2.0.4 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-2.0.3 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-2.0.2 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-2.0.1 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-2.0.0 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.6.16 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.6.15 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.6.14 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.6.13 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.6.12 lib/meducation_sdk/resources/badges/badge.rb
meducation_sdk-1.6.11 lib/meducation_sdk/resources/badges/badge.rb