Class: Troo::Board
- Inherits:
-
Ohm::Model
- Object
- Ohm::Model
- Troo::Board
- Includes:
- Ohm::DataTypes, ModelHelpers
- Defined in:
- lib/troo/models/board.rb
Class Method Summary collapse
Instance Method Summary collapse
- #cards ⇒ Ohm::Set
-
#decorator(options = {}) ⇒ Object
[].
- #lists ⇒ Ohm::Set
- #presenter(options = {}) ⇒ Troo::Presenters::Board
- #type ⇒ Symbol
Methods included from ModelHelpers
Class Method Details
.remote ⇒ Remote::Board
21 22 23 |
# File 'lib/troo/models/board.rb', line 21 def remote Remote::Board end |
.type ⇒ Symbol
26 27 28 |
# File 'lib/troo/models/board.rb', line 26 def type :board end |
Instance Method Details
#cards ⇒ Ohm::Set
37 38 39 |
# File 'lib/troo/models/board.rb', line 37 def cards Troo::Card.find(external_board_id: external_id) end |
#decorator(options = {}) ⇒ Object
Returns [].
43 44 45 |
# File 'lib/troo/models/board.rb', line 43 def decorator( = {}) Decorators::Resource.new(self, ) end |
#lists ⇒ Ohm::Set
32 33 34 |
# File 'lib/troo/models/board.rb', line 32 def lists Troo::List.find(external_board_id: external_id) end |
#presenter(options = {}) ⇒ Troo::Presenters::Board
49 50 51 |
# File 'lib/troo/models/board.rb', line 49 def presenter( = {}) Presenters::Board.new(self, ) end |
#type ⇒ Symbol
54 55 56 |
# File 'lib/troo/models/board.rb', line 54 def type self.class.type end |