Class: TrelloFs::LabelsBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/trello-fs/labels_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(repository) ⇒ LabelsBuilder

Returns a new instance of LabelsBuilder.



5
6
7
# File 'lib/trello-fs/labels_builder.rb', line 5

def initialize(repository)
  @repository = repository
end

Instance Attribute Details

#repositoryObject (readonly)

Returns the value of attribute repository.



3
4
5
# File 'lib/trello-fs/labels_builder.rb', line 3

def repository
  @repository
end

Instance Method Details

#buildObject



9
10
11
12
13
# File 'lib/trello-fs/labels_builder.rb', line 9

def build
  @repository.labels.values.each do |label|
    LabelBuilder.new(@repository, label).build
  end
end