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-1.6.10 lib/meducation_sdk/resources/board_follow.rb
meducation_sdk-1.6.6 lib/meducation_sdk/resources/board_follow.rb
meducation_sdk-1.6.5 lib/meducation_sdk/resources/board_follow.rb
meducation_sdk-1.6.4 lib/meducation_sdk/resources/board_follow.rb
meducation_sdk-1.6.3 lib/meducation_sdk/resources/board_follow.rb
meducation_sdk-1.6.2 lib/meducation_sdk/resources/board_follow.rb
meducation_sdk-1.6.1 lib/meducation_sdk/resources/board_follow.rb
meducation_sdk-1.6.0 lib/meducation_sdk/resources/board_follow.rb
meducation_sdk-1.5.7 lib/meducation_sdk/resources/board_follow.rb
meducation_sdk-1.5.6 lib/meducation_sdk/resources/board_follow.rb
meducation_sdk-1.5.5 lib/meducation_sdk/resources/board_follow.rb