Sha256: 657e8df8fd55c8974f9dbec3ef57942088b70e551cfead01afef558fe215606f

Contents?: true

Size: 531 Bytes

Versions: 37

Compression:

Stored size: 531 Bytes

Contents

module MeducationSDK
  class Group < Resource
    self.path = "/groups"

    def created_by
      @created_by = User.find(created_by_id)
    end

    def admins
      [created_by]
    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

37 entries across 37 versions & 1 rubygems

Version Path
meducation_sdk-2.2.2 lib/meducation_sdk/resources/group.rb
meducation_sdk-2.2.1 lib/meducation_sdk/resources/group.rb
meducation_sdk-2.2.0 lib/meducation_sdk/resources/group.rb
meducation_sdk-2.1.4 lib/meducation_sdk/resources/group.rb
meducation_sdk-2.1.3 lib/meducation_sdk/resources/group.rb
meducation_sdk-2.1.2 lib/meducation_sdk/resources/group.rb
meducation_sdk-2.1.1 lib/meducation_sdk/resources/group.rb
meducation_sdk-2.1.0 lib/meducation_sdk/resources/group.rb
meducation_sdk-2.0.5 lib/meducation_sdk/resources/group.rb
meducation_sdk-2.0.4 lib/meducation_sdk/resources/group.rb
meducation_sdk-2.0.3 lib/meducation_sdk/resources/group.rb
meducation_sdk-2.0.2 lib/meducation_sdk/resources/group.rb
meducation_sdk-2.0.1 lib/meducation_sdk/resources/group.rb
meducation_sdk-2.0.0 lib/meducation_sdk/resources/group.rb
meducation_sdk-1.6.16 lib/meducation_sdk/resources/group.rb
meducation_sdk-1.6.15 lib/meducation_sdk/resources/group.rb
meducation_sdk-1.6.14 lib/meducation_sdk/resources/group.rb
meducation_sdk-1.6.13 lib/meducation_sdk/resources/group.rb
meducation_sdk-1.6.12 lib/meducation_sdk/resources/group.rb
meducation_sdk-1.6.11 lib/meducation_sdk/resources/group.rb