Class: ContextIO::AccountSyncData

Inherits:
Object
  • Object
show all
Defined in:
lib/contextio/account_sync_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_labelsObject (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

#sourcesObject (readonly)

Returns the value of attribute sources.



5
6
7
# File 'lib/contextio/account_sync_data.rb', line 5

def sources
  @sources
end