Sha256: f31e88280678b3cd3b7e2298dab3bd5f5b5c1fbe5f9f394c7e6e21a5696f7494

Contents?: true

Size: 485 Bytes

Versions: 28

Compression:

Stored size: 485 Bytes

Contents

module MeducationSDK
  class BoardItem < Resource
    self.path = "/board_items"

    def item
      @item ||= sdk_class_for(item_type).find(item_id)
    end

    def board
      @board ||= Board.find(board_id)
    end

    def user
      @user ||= User.find(user_id)
    end

  end

  class BoardItemMock < BoardItem
    extend Loquor::ResourceMock

    self.attributes = {
      id: 1,
      board_id: 8,
      item_id: 5, item_type: "MediaFile",
      user_id: 14
    }
  end
end


Version data entries

28 entries across 28 versions & 1 rubygems

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