Class: Troo::List
- Inherits:
-
Ohm::Model
- Object
- Ohm::Model
- Troo::List
- Includes:
- Ohm::DataTypes, ModelHelpers
- Defined in:
- lib/troo/models/list.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#board ⇒ Object
[].
- #cards ⇒ Ohm::Set
-
#decorator(options = {}) ⇒ Object
[].
- #presenter(options = {}) ⇒ Troo::Presenters::List
- #type ⇒ Symbol
Methods included from ModelHelpers
Class Method Details
.remote ⇒ Remote::List
23 24 25 |
# File 'lib/troo/models/list.rb', line 23 def remote Remote::List end |
.type ⇒ Symbol
28 29 30 |
# File 'lib/troo/models/list.rb', line 28 def type :list end |
Instance Method Details
#board ⇒ Object
Returns [].
34 35 36 |
# File 'lib/troo/models/list.rb', line 34 def board Troo::Board.retrieve(external_board_id) end |
#cards ⇒ Ohm::Set
39 40 41 |
# File 'lib/troo/models/list.rb', line 39 def cards Troo::Card.find(external_list_id: external_id) end |
#decorator(options = {}) ⇒ Object
Returns [].
45 46 47 |
# File 'lib/troo/models/list.rb', line 45 def decorator( = {}) Decorators::Resource.new(self, ) end |
#presenter(options = {}) ⇒ Troo::Presenters::List
51 52 53 |
# File 'lib/troo/models/list.rb', line 51 def presenter( = {}) Presenters::List.new(self, ) end |
#type ⇒ Symbol
56 57 58 |
# File 'lib/troo/models/list.rb', line 56 def type self.class.type end |