Sha256: 2cd7f64eff691909256b17ebb13301a97f95f009ab24ef8796d011206ef0276d

Contents?: true

Size: 374 Bytes

Versions: 31

Compression:

Stored size: 374 Bytes

Contents

module MeducationSDK
  class BoardFollow < Resource
    self.path = "/board_follows"

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

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

  end

  class BoardFollowMock < BoardFollow
    extend Loquor::ResourceMock

    self.attributes = {
      id: 1,
      board_id: 8,
      user_id: 14
    }
  end
end


Version data entries

31 entries across 31 versions & 1 rubygems

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