Class: TrelloFs::Repository
- Inherits:
-
Object
- Object
- TrelloFs::Repository
- Defined in:
- lib/trello-fs/repository.rb
Instance Attribute Summary collapse
-
#attachments ⇒ Object
readonly
Returns the value of attribute attachments.
-
#cards ⇒ Object
readonly
Returns the value of attribute cards.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#labels ⇒ Object
readonly
Returns the value of attribute labels.
Instance Method Summary collapse
- #board_ids ⇒ Object
- #description ⇒ Object
- #developer_public_key ⇒ Object
-
#initialize(config, builder = nil) ⇒ Repository
constructor
A new instance of Repository.
- #member_token ⇒ Object
- #path ⇒ Object
- #title ⇒ Object
Constructor Details
#initialize(config, builder = nil) ⇒ Repository
Returns a new instance of Repository.
5 6 7 8 9 10 11 12 13 |
# File 'lib/trello-fs/repository.rb', line 5 def initialize(config, builder = nil) raise 'Wrong arguments' unless has_required_configuration?(config) @config = config @builder = builder @cards = {} = [] @labels = {} end |
Instance Attribute Details
#attachments ⇒ Object (readonly)
Returns the value of attribute attachments.
3 4 5 |
# File 'lib/trello-fs/repository.rb', line 3 def end |
#cards ⇒ Object (readonly)
Returns the value of attribute cards.
3 4 5 |
# File 'lib/trello-fs/repository.rb', line 3 def cards @cards end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
3 4 5 |
# File 'lib/trello-fs/repository.rb', line 3 def config @config end |
#labels ⇒ Object (readonly)
Returns the value of attribute labels.
3 4 5 |
# File 'lib/trello-fs/repository.rb', line 3 def labels @labels end |
Instance Method Details
#board_ids ⇒ Object
19 20 21 |
# File 'lib/trello-fs/repository.rb', line 19 def board_ids @config[:board_ids] end |
#description ⇒ Object
35 36 37 |
# File 'lib/trello-fs/repository.rb', line 35 def description config[:description] end |
#developer_public_key ⇒ Object
23 24 25 |
# File 'lib/trello-fs/repository.rb', line 23 def developer_public_key config[:developer_public_key] end |
#member_token ⇒ Object
27 28 29 |
# File 'lib/trello-fs/repository.rb', line 27 def member_token config[:member_token] end |
#path ⇒ Object
15 16 17 |
# File 'lib/trello-fs/repository.rb', line 15 def path @config[:path] end |
#title ⇒ Object
31 32 33 |
# File 'lib/trello-fs/repository.rb', line 31 def title config[:title] end |