lib/troo/models/board.rb in troo-0.0.10 vs lib/troo/models/board.rb in troo-0.0.11
- old
+ new
@@ -15,34 +15,43 @@
index :short_id
alias_method :default?, :default
class << self
+ # @return [Remote::Board]
def remote
Remote::Board
end
+ # @return [Symbol]
def type
:board
end
end
+ # @return [Ohm::Set]
def lists
Troo::List.find(external_board_id: external_id)
end
+ # @return [Ohm::Set]
def cards
Troo::Card.find(external_board_id: external_id)
end
+ # @param [Hash]
+ # @return []
def decorator(options = {})
Decorators::Resource.new(self, options)
end
+ # @param [Hash]
+ # @return [Troo::Presenters::Board]
def presenter(options = {})
Presenters::Board.new(self, options)
end
+ # @return [Symbol]
def type
self.class.type
end
end
end