Sha256: 6578b7ca7e705f554170259ba291101710db43d867563226df7a6f6b4abc477f
Contents?: true
Size: 1.33 KB
Versions: 13
Compression:
Stored size: 1.33 KB
Contents
module MeducationSDK class Resource < Loquor::Resource include Helpers def self.spi_type=(type) Helpers::SDK_TO_SPI_MAPPINGS[self.name] = type end def created_at DateTime.parse(@data[:created_at]) end def updated_at DateTime.parse(@data[:updated_at]) end end end RESOURCES = %w{ author badges/answerer_badge badges/befriender_badge badges/citizen_badge badges/commentator_badge badges/community_member_badge badges/contributor_badge badges/eminent_author_badge badges/enlightener_badge badges/inquisitive_mind_badge badges/photogenic_badge badges/questioner_badge badges/respected_author_badge blog_post blogger board board_follow board_item collection collection_section collection_topic comment community community_membership dashboard_item ecommerce_subscription external_resource friendship group group_discussion group_discussion_post group_invite group_membership knowledge_bank_question knowledge_bank_answer media_file mesh_heading message message_thread message_thread_contributor mnemonic notification partner syllabus_item user user_email_data user_settings view vote } require "meducation_sdk/resources/badges/badge" RESOURCES.each do |resource| require "meducation_sdk/resources/#{resource}" end
Version data entries
13 entries across 13 versions & 1 rubygems