Module: Troo::RemoteModelHelpers::ClassMethods

Defined in:
lib/troo/helpers/remote_model_helpers.rb

Instance Method Summary collapse

Instance Method Details

#allHash

Returns:

  • (Hash)


11
12
13
# File 'lib/troo/helpers/remote_model_helpers.rb', line 11

def all
  {}
end

#by_board_idHash

Returns:

  • (Hash)


16
17
18
# File 'lib/troo/helpers/remote_model_helpers.rb', line 16

def by_board_id
  {}
end

#by_card_idHash

Returns:

  • (Hash)


26
27
28
# File 'lib/troo/helpers/remote_model_helpers.rb', line 26

def by_card_id
  {}
end

#by_list_idHash

Returns:

  • (Hash)


21
22
23
# File 'lib/troo/helpers/remote_model_helpers.rb', line 21

def by_list_id
  {}
end

#by_member_idHash

Returns:

  • (Hash)


31
32
33
# File 'lib/troo/helpers/remote_model_helpers.rb', line 31

def by_member_id
  {}
end

#with_collection(resources = []) ⇒ Array

Parameters:

  • (Array)

Returns:

  • (Array)


6
7
8
# File 'lib/troo/helpers/remote_model_helpers.rb', line 6

def with_collection(resources = [])
  resources.map { |resource| new(resource) }
end