Class: ContextIO::AccountSyncData
- Inherits:
-
Object
- Object
- ContextIO::AccountSyncData
- Defined in:
- lib/contextio/account_sync_data.rb
Instance Attribute Summary collapse
-
#source_labels ⇒ Object
readonly
Returns the value of attribute source_labels.
-
#sources ⇒ Object
readonly
Returns the value of attribute sources.
Instance Method Summary collapse
-
#initialize(source_hash) ⇒ AccountSyncData
constructor
A new instance of AccountSyncData.
Constructor Details
#initialize(source_hash) ⇒ AccountSyncData
Returns a new instance of AccountSyncData.
7 8 9 10 11 12 13 14 |
# File 'lib/contextio/account_sync_data.rb', line 7 def initialize(source_hash) @source_hash = source_hash @source_labels = source_hash.keys @sources = source_hash.collect do |source_label, folder_hash| ContextIO::SourceSyncData.new(source_label, folder_hash) end end |
Instance Attribute Details
#source_labels ⇒ Object (readonly)
Returns the value of attribute source_labels.
5 6 7 |
# File 'lib/contextio/account_sync_data.rb', line 5 def source_labels @source_labels end |
#sources ⇒ Object (readonly)
Returns the value of attribute sources.
5 6 7 |
# File 'lib/contextio/account_sync_data.rb', line 5 def sources @sources end |