Class: Glare::CfDnsRecords::Updater::Operations
- Inherits:
-
Object
- Object
- Glare::CfDnsRecords::Updater::Operations
- Defined in:
- lib/glare/cf_dns_records/updater.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#deletions ⇒ Object
readonly
Returns the value of attribute deletions.
-
#insertions ⇒ Object
readonly
Returns the value of attribute insertions.
-
#updates ⇒ Object
readonly
Returns the value of attribute updates.
Instance Method Summary collapse
- #add_deletions(deletions) ⇒ Object
- #add_insertions(insertions) ⇒ Object
- #add_updates(updates) ⇒ Object
-
#initialize ⇒ Operations
constructor
A new instance of Operations.
Constructor Details
#initialize ⇒ Operations
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
#count ⇒ Object (readonly)
Returns the value of attribute count.
12 13 14 |
# File 'lib/glare/cf_dns_records/updater.rb', line 12 def count @count end |
#deletions ⇒ Object (readonly)
Returns the value of attribute deletions.
12 13 14 |
# File 'lib/glare/cf_dns_records/updater.rb', line 12 def deletions @deletions end |
#insertions ⇒ Object (readonly)
Returns the value of attribute insertions.
12 13 14 |
# File 'lib/glare/cf_dns_records/updater.rb', line 12 def insertions @insertions end |
#updates ⇒ Object (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 |