Module: Troo::RemoteModelHelpers::ClassMethods
- Defined in:
- lib/troo/helpers/remote_model_helpers.rb
Instance Method Summary collapse
- #all ⇒ Hash
- #by_board_id ⇒ Hash
- #by_card_id ⇒ Hash
- #by_list_id ⇒ Hash
- #by_member_id ⇒ Hash
- #with_collection(resources = []) ⇒ Array
Instance Method Details
#all ⇒ Hash
11 12 13 |
# File 'lib/troo/helpers/remote_model_helpers.rb', line 11 def all {} end |
#by_board_id ⇒ Hash
16 17 18 |
# File 'lib/troo/helpers/remote_model_helpers.rb', line 16 def by_board_id {} end |
#by_card_id ⇒ Hash
26 27 28 |
# File 'lib/troo/helpers/remote_model_helpers.rb', line 26 def by_card_id {} end |
#by_list_id ⇒ Hash
21 22 23 |
# File 'lib/troo/helpers/remote_model_helpers.rb', line 21 def by_list_id {} end |
#by_member_id ⇒ Hash
31 32 33 |
# File 'lib/troo/helpers/remote_model_helpers.rb', line 31 def by_member_id {} end |
#with_collection(resources = []) ⇒ Array
6 7 8 |
# File 'lib/troo/helpers/remote_model_helpers.rb', line 6 def with_collection(resources = []) resources.map { |resource| new(resource) } end |