Module: Mingle4r::API::Project::InstanceMethods
- Defined in:
- lib/mingle4r/api/project.rb
Instance Method Summary collapse
-
#cards ⇒ Object
returns the cards for the project.
-
#execute_mql(query) ⇒ Object
executes an mql.
-
#filter_cards(filter_str) ⇒ Object
returns a filtered list of cards.
-
#find_card(number) ⇒ Object
finds a single card.
-
#murmurs ⇒ Object
returns the murmurs for the project.
- #new_card ⇒ Object
-
#post_murmur(str) ⇒ Object
posts a murmur.
-
#property_definitions ⇒ Object
returns the property definitions for the project.
-
#users ⇒ Object
returns the users for the project.
-
#wikis ⇒ Object
returns the wikis for the project.
Instance Method Details
#cards ⇒ Object
returns the cards for the project.
6 7 8 9 |
# File 'lib/mingle4r/api/project.rb', line 6 def cards set_attributes_for(Card) Card.find_without_pagination(:all) end |
#execute_mql(query) ⇒ Object
executes an mql
43 44 45 46 |
# File 'lib/mingle4r/api/project.rb', line 43 def execute_mql(query) set_attributes_for(ExecuteMql) ExecuteMql.query(query) end |
#filter_cards(filter_str) ⇒ Object
returns a filtered list of cards
55 56 57 58 |
# File 'lib/mingle4r/api/project.rb', line 55 def filter_cards(filter_str) set_attributes_for(Card) Card.apply_filter(filter_str) end |
#find_card(number) ⇒ Object
finds a single card
49 50 51 52 |
# File 'lib/mingle4r/api/project.rb', line 49 def find_card(number) set_attributes_for(Card) Card.find(number) end |
#murmurs ⇒ Object
returns the murmurs for the project.
30 31 32 33 |
# File 'lib/mingle4r/api/project.rb', line 30 def murmurs set_attributes_for(Murmur) Murmur.find(:all) end |
#new_card ⇒ Object
60 61 62 63 |
# File 'lib/mingle4r/api/project.rb', line 60 def new_card set_attributes_for(Card) Card.new end |
#post_murmur(str) ⇒ Object
posts a murmur
36 37 38 39 40 |
# File 'lib/mingle4r/api/project.rb', line 36 def post_murmur(str) set_attributes_for(Murmur) murmur = Murmur.new(:body => str.to_s) murmur.save end |
#property_definitions ⇒ Object
returns the property definitions for the project.
24 25 26 27 |
# File 'lib/mingle4r/api/project.rb', line 24 def property_definitions set_attributes_for(PropertyDefinition) PropertyDefinition.find(:all) end |