Class: Trellodon::Board

Inherits:
Struct
  • Object
show all
Defined in:
lib/trellodon/entities/board.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#card_idsObject

Returns the value of attribute card_ids

Returns:

  • (Object)

    the current value of card_ids



4
5
6
# File 'lib/trellodon/entities/board.rb', line 4

def card_ids
  @card_ids
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



4
5
6
# File 'lib/trellodon/entities/board.rb', line 4

def id
  @id
end

#last_activity_dateObject

Returns the value of attribute last_activity_date

Returns:

  • (Object)

    the current value of last_activity_date



4
5
6
# File 'lib/trellodon/entities/board.rb', line 4

def last_activity_date
  @last_activity_date
end

#listsObject

Returns the value of attribute lists

Returns:

  • (Object)

    the current value of lists



4
5
6
# File 'lib/trellodon/entities/board.rb', line 4

def lists
  @lists
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



4
5
6
# File 'lib/trellodon/entities/board.rb', line 4

def name
  @name
end

Instance Method Details

#get_list(list_id) ⇒ Object



5
6
7
8
# File 'lib/trellodon/entities/board.rb', line 5

def get_list(list_id)
  return nil if lists.nil?
  lists.find { |list| list.id == list_id }
end