Sha256: 6de76e160635ad8df354e9c452b99a074409653cee544548f7fc47a9e368c09d
Contents?: true
Size: 496 Bytes
Versions: 3
Compression:
Stored size: 496 Bytes
Contents
module MeducationSDK class Group < Loquor::Resource self.path = "/groups" def created_by @created_by = User.find(created_by_id) end end class GroupMock < Group extend Loquor::ResourceMock self.attributes = { id: 1, name: "A great group", description: "Some description of a group", created_by_id: 23, image_url: "http://i.telegraph.co.uk/multimedia/archive/02351/cross-eyed-cat_2351472k.jpg", url: "my_url" } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
meducation_sdk-0.6.1 | lib/meducation_sdk/resources/group.rb |
meducation_sdk-0.6.0 | lib/meducation_sdk/resources/group.rb |
meducation_sdk-0.5.0 | lib/meducation_sdk/resources/group.rb |