Sha256: be14719bebf96879f67c9dd08fa21a34e9d20bb34f8da676f108b069720b0699
Contents?: true
Size: 272 Bytes
Versions: 2
Compression:
Stored size: 272 Bytes
Contents
module MeducationSDK class Resource < Loquor::Resource def class_for(meducation_type) case meducation_type when "Item::Comment" Comment else "MeducationSDK::#{meducation_type.gsub("::", "")}".constantize end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
meducation_sdk-1.5.0 | lib/meducation_sdk/resource.rb |
meducation_sdk-1.4.4 | lib/meducation_sdk/resource.rb |