class TaskMapper::Provider::Trello::Project
Public Class Methods
find_all()
click to toggle source
# File lib/provider/project.rb, line 16 def find_all boards = TaskMapper::Provider::Trello.api.boards boards.map { |board| self.new board.attributes } end
find_by_attributes(attributes = {})
click to toggle source
# File lib/provider/project.rb, line 12 def find_by_attributes(attributes = {}) search_by_attribute(self.find_all, attributes) end
find_by_id(id)
click to toggle source
# File lib/provider/project.rb, line 21 def find_by_id(id) board = TaskMapper::Provider::Trello.api.boards.find { |f| f.id == id} self.new board.attributes end
new(*object)
click to toggle source
Calls superclass method
# File lib/provider/project.rb, line 4 def initialize(*object) if object.first object = object.first super object end end