Skip to content
Browse files

Not having the best of days with git. Revert the reversion of the com…

…mit that I really do want to make.

This reverts commit 693815b.
  • Loading branch information...
1 parent 693815b commit 5e2e2413d98a7445a4cbda93a7346299669e7003 @patio11 committed Nov 8, 2011
Showing with 13 additions and 10 deletions.
  1. +6 −2 lib/fog/slicehost/parsers/dns/get_records.rb
  2. +7 −8 lib/fog/slicehost/requests/dns/get_records.rb
View
8 lib/fog/slicehost/parsers/dns/get_records.rb
@@ -12,9 +12,13 @@ def reset
def end_element(name)
case name
- when 'zone-id', 'ttl'
+ when 'zone-id'
+ @record["zone_id"] = value.to_i
+ when 'record-type'
+ @record["record_type"] = value
+ when 'ttl'
@record[name] = value.to_i
- when 'record-type', 'name', 'data', 'active', 'aux'
+ when 'name', 'data', 'active', 'aux'
@record[name] = value
when 'record'
@response['records'] << @record
View
15 lib/fog/slicehost/requests/dns/get_records.rb
@@ -10,14 +10,13 @@ class Real
# ==== Returns
# * response<~Excon::Response>:
# * body<~Array>:
- # * 'addresses'<~Array> - Ip addresses for the slice
- # * 'backup-id'<~Integer> - Id of backup slice was booted from
- # * 'flavor_id'<~Integer> - Id of flavor slice was booted from
- # * 'id'<~Integer> - Id of the slice
- # * 'image-id'<~Integer> - Id of image slice was booted from
- # * 'name'<~String> - Name of the slice
- # * 'progress'<~Integer> - Progress of current action, in percentage
- # * 'status'<~String> - Current status of the slice
+ # * 'name'<~String> - Record NAME field (e.g. "example.org." or "www")
+ # * 'data'<~String> - Data contained by the record (e.g. an IP address, for A records)
+ # * 'record-type'<~String> - Type of record (A, CNAME, TXT, etc)
+ # * 'aux'<~String> - Aux data for the record, for those types which have it (e.g. TXT)
+ # * 'zone-id'<~Integer> - zone ID to which this record belongs
+ # * 'active'<~String> - whether this record is active in the Slicehost DNS (Y for yes, N for no)
+ # * 'ttl'<~Integer> - TTL in seconds
def get_records
request(
:expects => 200,

0 comments on commit 5e2e241

Please sign in to comment.
Something went wrong with that request. Please try again.