Class: Glare::CfDnsRecords::Updater::Operations

Inherits:
Object
  • Object
show all
Defined in:
lib/glare/cf_dns_records/updater.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOperations

Returns a new instance of Operations.



5
6
7
8
9
10
# File 'lib/glare/cf_dns_records/updater.rb', line 5

def initialize
  @updates = []
  @insertions = []
  @deletions = []
  @count = 0
end

Instance Attribute Details

#countObject (readonly)

Returns the value of attribute count.



12
13
14
# File 'lib/glare/cf_dns_records/updater.rb', line 12

def count
  @count
end

#deletionsObject (readonly)

Returns the value of attribute deletions.



12
13
14
# File 'lib/glare/cf_dns_records/updater.rb', line 12

def deletions
  @deletions
end

#insertionsObject (readonly)

Returns the value of attribute insertions.



12
13
14
# File 'lib/glare/cf_dns_records/updater.rb', line 12

def insertions
  @insertions
end

#updatesObject (readonly)

Returns the value of attribute updates.



12
13
14
# File 'lib/glare/cf_dns_records/updater.rb', line 12

def updates
  @updates
end

Instance Method Details

#add_deletions(deletions) ⇒ Object



24
25
26
27
# File 'lib/glare/cf_dns_records/updater.rb', line 24

def add_deletions(deletions)
  @count += deletions.count
  @deletions += deletions
end

#add_insertions(insertions) ⇒ Object



19
20
21
22
# File 'lib/glare/cf_dns_records/updater.rb', line 19

def add_insertions(insertions)
  @count += insertions.count
  @insertions += insertions
end

#add_updates(updates) ⇒ Object



14
15
16
17
# File 'lib/glare/cf_dns_records/updater.rb', line 14

def add_updates(updates)
  @count += updates.count
  @updates += updates
end