Class: TrelloFs::LabelsBuilder
- Inherits:
-
Object
- Object
- TrelloFs::LabelsBuilder
- Defined in:
- lib/trello-fs/labels_builder.rb
Instance Attribute Summary collapse
-
#repository ⇒ Object
readonly
Returns the value of attribute repository.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(repository) ⇒ LabelsBuilder
constructor
A new instance of LabelsBuilder.
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
#repository ⇒ Object (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
#build ⇒ Object
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 |