dnsimple 4.0.0 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +1 -8
  4. data/lib/dnsimple/client/certificates.rb +7 -7
  5. data/lib/dnsimple/client/collaborators.rb +3 -3
  6. data/lib/dnsimple/client/contacts.rb +6 -6
  7. data/lib/dnsimple/client/domains.rb +6 -6
  8. data/lib/dnsimple/client/domains_email_forwards.rb +5 -5
  9. data/lib/dnsimple/client/domains_pushes.rb +6 -6
  10. data/lib/dnsimple/client/registrar.rb +37 -11
  11. data/lib/dnsimple/client/registrar_auto_renewal.rb +2 -2
  12. data/lib/dnsimple/client/registrar_delegation.rb +4 -4
  13. data/lib/dnsimple/client/registrar_whois_privacy.rb +3 -3
  14. data/lib/dnsimple/client/services_domains.rb +3 -3
  15. data/lib/dnsimple/client/templates.rb +6 -6
  16. data/lib/dnsimple/client/templates_domains.rb +1 -1
  17. data/lib/dnsimple/client/templates_records.rb +7 -7
  18. data/lib/dnsimple/client/vanity_name_servers.rb +2 -2
  19. data/lib/dnsimple/client/webhooks.rb +4 -4
  20. data/lib/dnsimple/client/zones.rb +4 -4
  21. data/lib/dnsimple/client/zones_records.rb +9 -9
  22. data/lib/dnsimple/response.rb +7 -7
  23. data/lib/dnsimple/struct.rb +4 -0
  24. data/lib/dnsimple/struct/account.rb +1 -1
  25. data/lib/dnsimple/struct/certificate.rb +3 -3
  26. data/lib/dnsimple/struct/collaborator.rb +3 -3
  27. data/lib/dnsimple/struct/contact.rb +2 -2
  28. data/lib/dnsimple/struct/domain.rb +3 -3
  29. data/lib/dnsimple/struct/domain_premium_price.rb +13 -0
  30. data/lib/dnsimple/struct/domain_push.rb +4 -4
  31. data/lib/dnsimple/struct/domain_registration.rb +37 -0
  32. data/lib/dnsimple/struct/domain_renewal.rb +28 -0
  33. data/lib/dnsimple/struct/domain_transfer.rb +34 -0
  34. data/lib/dnsimple/struct/email_forward.rb +2 -2
  35. data/lib/dnsimple/struct/oauth_token.rb +1 -1
  36. data/lib/dnsimple/struct/service.rb +3 -3
  37. data/lib/dnsimple/struct/template.rb +4 -4
  38. data/lib/dnsimple/struct/template_record.rb +4 -4
  39. data/lib/dnsimple/struct/tld.rb +2 -2
  40. data/lib/dnsimple/struct/user.rb +1 -1
  41. data/lib/dnsimple/struct/webhook.rb +1 -1
  42. data/lib/dnsimple/struct/whois_privacy.rb +1 -1
  43. data/lib/dnsimple/struct/zone.rb +2 -2
  44. data/lib/dnsimple/struct/zone_record.rb +4 -4
  45. data/lib/dnsimple/version.rb +1 -1
  46. data/spec/dnsimple/client/certificates_spec.rb +2 -2
  47. data/spec/dnsimple/client/contacts_spec.rb +2 -2
  48. data/spec/dnsimple/client/domains_email_forwards_spec.rb +2 -2
  49. data/spec/dnsimple/client/domains_spec.rb +2 -2
  50. data/spec/dnsimple/client/identity_spec.rb +2 -2
  51. data/spec/dnsimple/client/registrar_auto_renewal_spec.rb +2 -2
  52. data/spec/dnsimple/client/registrar_spec.rb +57 -7
  53. data/spec/dnsimple/client/services_domains_spec.rb +2 -2
  54. data/spec/dnsimple/client/services_spec.rb +8 -4
  55. data/spec/dnsimple/client/templates_records_spec.rb +4 -4
  56. data/spec/dnsimple/client/templates_spec.rb +4 -4
  57. data/spec/dnsimple/client/zones_records_spec.rb +4 -4
  58. data/spec/dnsimple/client/zones_spec.rb +2 -2
  59. data/spec/fixtures.http/accounts/success-account.http +21 -0
  60. data/spec/fixtures.http/accounts/success-user.http +21 -0
  61. data/spec/fixtures.http/addCollaborator/invite-success.http +1 -1
  62. data/spec/fixtures.http/addCollaborator/success.http +1 -1
  63. data/spec/fixtures.http/appliedServices/success.http +1 -1
  64. data/spec/fixtures.http/applyService/{created.http → success.http} +0 -0
  65. data/spec/fixtures.http/changeDomainDelegationToVanity/success.http +1 -1
  66. data/spec/fixtures.http/checkDomain/success.http +17 -17
  67. data/spec/fixtures.http/createContact/created.http +17 -17
  68. data/spec/fixtures.http/createDomain/created.http +1 -1
  69. data/spec/fixtures.http/createEmailForward/created.http +1 -1
  70. data/spec/fixtures.http/createTemplate/created.http +1 -1
  71. data/spec/fixtures.http/createTemplateRecord/created.http +1 -1
  72. data/spec/fixtures.http/createWebhook/created.http +17 -17
  73. data/spec/fixtures.http/createZoneRecord/created-apex.http +17 -0
  74. data/spec/fixtures.http/createZoneRecord/created.http +9 -13
  75. data/spec/fixtures.http/deleteContact/success.http +13 -13
  76. data/spec/fixtures.http/deleteEmailForward/success.http +13 -12
  77. data/spec/fixtures.http/deleteWebhook/success.http +13 -13
  78. data/spec/fixtures.http/disableDomainAutoRenewal/success.http +13 -0
  79. data/spec/fixtures.http/disableWhoisPrivacy/success.http +1 -1
  80. data/spec/fixtures.http/enableDomainAutoRenewal/success.http +13 -0
  81. data/spec/fixtures.http/enableVanityNameServers/success.http +1 -1
  82. data/spec/fixtures.http/enableWhoisPrivacy/created.http +1 -1
  83. data/spec/fixtures.http/enableWhoisPrivacy/success.http +1 -1
  84. data/spec/fixtures.http/getCertificate/success.http +1 -1
  85. data/spec/fixtures.http/getContact/success.http +17 -17
  86. data/spec/fixtures.http/getDomain/success.http +16 -16
  87. data/spec/fixtures.http/getDomainPremiumPrice/failure.http +16 -0
  88. data/spec/fixtures.http/getDomainPremiumPrice/success.http +21 -0
  89. data/spec/fixtures.http/getEmailForward/success.http +17 -17
  90. data/spec/fixtures.http/getService/success.http +1 -1
  91. data/spec/fixtures.http/getTemplate/success.http +1 -1
  92. data/spec/fixtures.http/getTemplateRecord/success.http +1 -1
  93. data/spec/fixtures.http/getTldExtendedAttributes/success-attributes.http +17 -0
  94. data/spec/fixtures.http/getWebhook/success.http +17 -17
  95. data/spec/fixtures.http/getWhoisPrivacy/success.http +1 -1
  96. data/spec/fixtures.http/getZone/success.http +17 -17
  97. data/spec/fixtures.http/getZoneRecord/success.http +1 -1
  98. data/spec/fixtures.http/initiatePush/success.http +1 -1
  99. data/spec/fixtures.http/listAccounts/success-account.http +1 -1
  100. data/spec/fixtures.http/listAccounts/success-user.http +1 -1
  101. data/spec/fixtures.http/listCertificates/success.http +1 -1
  102. data/spec/fixtures.http/listCollaborators/success.http +1 -1
  103. data/spec/fixtures.http/listContacts/success.http +17 -17
  104. data/spec/fixtures.http/listDomains/success.http +1 -1
  105. data/spec/fixtures.http/listEmailForwards/success.http +1 -1
  106. data/spec/fixtures.http/listPushes/success.http +1 -1
  107. data/spec/fixtures.http/listServices/success.http +12 -8
  108. data/spec/fixtures.http/listTemplateRecords/success.http +1 -1
  109. data/spec/fixtures.http/listTemplates/success.http +1 -1
  110. data/spec/fixtures.http/listWebhooks/success.http +17 -17
  111. data/spec/fixtures.http/listZoneRecords/success.http +1 -1
  112. data/spec/fixtures.http/listZones/success.http +17 -17
  113. data/spec/fixtures.http/method-not-allowed.http +11 -11
  114. data/spec/fixtures.http/notfound-contact.http +12 -12
  115. data/spec/fixtures.http/notfound-record.http +11 -11
  116. data/spec/fixtures.http/notfound-whoisprivacy.http +12 -0
  117. data/spec/fixtures.http/notfound-zone.http +11 -11
  118. data/spec/fixtures.http/oauthAccessToken/error-invalid-request.http +16 -0
  119. data/spec/fixtures.http/oauthAccessToken/success.http +17 -17
  120. data/spec/fixtures.http/registerDomain/success.http +21 -17
  121. data/spec/fixtures.http/renewDomain/success.http +13 -9
  122. data/spec/fixtures.http/resetDomainToken/success.http +1 -1
  123. data/spec/fixtures.http/success-with-malformed-json.http +13 -0
  124. data/spec/fixtures.http/transferDomain/success.http +13 -9
  125. data/spec/fixtures.http/updateContact/success.http +17 -17
  126. data/spec/fixtures.http/updateTemplate/success.http +1 -1
  127. data/spec/fixtures.http/updateZoneRecord/success.http +1 -1
  128. data/spec/fixtures.http/validation-error.http +19 -0
  129. data/spec/fixtures.http/whoami/{success_account.http → success-account.http} +15 -15
  130. data/spec/fixtures.http/whoami/{success_user.http → success-user.http} +15 -15
  131. data/spec/fixtures.http/whoami/success.http +15 -15
  132. metadata +37 -14
  133. data/.ruby-version +0 -1
  134. data/spec/fixtures.http/disableAutoRenewal/success.http +0 -12
  135. data/spec/fixtures.http/enableAutoRenewal/success.http +0 -12
@@ -9,7 +9,7 @@ module Dnsimple
9
9
  # @example Get the whois privacy for "example.com":
10
10
  # client.registrar.whois_privacy(1010, "example.com")
11
11
  #
12
- # @param [Fixnum] account_id the account ID
12
+ # @param [Integer] account_id the account ID
13
13
  # @param [#to_s] domain_name the domain name
14
14
  # @param [Hash] options
15
15
  # @return [Struct::WhoisPrivacy]
@@ -29,7 +29,7 @@ module Dnsimple
29
29
  # @example Enable whois privacy for "example.com":
30
30
  # client.registrar.enable_whois_privacy(1010, "example.com")
31
31
  #
32
- # @param [Fixnum] account_id the account ID
32
+ # @param [Integer] account_id the account ID
33
33
  # @param [#to_s] domain_name the domain name
34
34
  # @param [Hash] options
35
35
  # @return [Struct::WhoisPrivacy]
@@ -49,7 +49,7 @@ module Dnsimple
49
49
  # @example Disable whois privacy for "example.com":
50
50
  # client.registrar.disable_whois_privacy(1010, "example.com")
51
51
  #
52
- # @param [Fixnum] account_id the account ID
52
+ # @param [Integer] account_id the account ID
53
53
  # @param [#to_s] domain_name The domain name to check.
54
54
  # @param [Hash] options
55
55
  # @return [Struct::WhoisPrivacy]
@@ -15,7 +15,7 @@ module Dnsimple
15
15
  # @example List applied one-click services for example.com, provide a sorting policy:
16
16
  # client.services.applied_services(1010, "example.com", sort: "short_name:asc")
17
17
  #
18
- # @param [Fixnum] account_id the account ID
18
+ # @param [Integer] account_id the account ID
19
19
  # @param [#to_s] domain_id the domain name
20
20
  # @param [Hash] options the filtering and sorting options
21
21
  # @option options [Integer] :page current page (pagination)
@@ -41,7 +41,7 @@ module Dnsimple
41
41
  # @example Apply one-click service service1 to example.com, provide optional settings:
42
42
  # client.domain_services.applied_services(1010, "example.com", "service1", app: "foo")
43
43
  #
44
- # @param [Fixnum] account_id the account ID
44
+ # @param [Integer] account_id the account ID
45
45
  # @param [#to_s] service_id the service name (or ID)
46
46
  # @param [#to_s] domain_id the domain name
47
47
  # @param [Hash] settings optional settings to apply the one-click service
@@ -63,7 +63,7 @@ module Dnsimple
63
63
  # @example Unapply one-click service service1 from example.com:
64
64
  # client.domain_services.applied_services(1010, "example.com", "service1")
65
65
  #
66
- # @param [Fixnum] account_id the account ID
66
+ # @param [Integer] account_id the account ID
67
67
  # @param [#to_s] service_id the service name (or ID)
68
68
  # @param [#to_s] domain_id the domain name
69
69
  # @param [Hash] options
@@ -15,7 +15,7 @@ module Dnsimple
15
15
  # @example List the templates for account 1010, provide sorting policy:
16
16
  # client.templates.list_templates(1010, sort: "short_name:asc")
17
17
  #
18
- # @param [Fixnum] account_id the account ID
18
+ # @param [Integer] account_id the account ID
19
19
  # @param [Hash] options the filtering and sorting options
20
20
  # @option options [Integer] :page current page (pagination)
21
21
  # @option options [Integer] :per_page number of entries to return (pagination)
@@ -45,7 +45,7 @@ module Dnsimple
45
45
  # @see https://developer.dnsimple.com/v2/templates/#list
46
46
  # @see #templates
47
47
  #
48
- # @param [Fixnum] account_id the account ID
48
+ # @param [Integer] account_id the account ID
49
49
  # @param [Hash] options the filtering and sorting options
50
50
  # @option options [Integer] :page current page (pagination)
51
51
  # @option options [Integer] :per_page number of entries to return (pagination)
@@ -64,7 +64,7 @@ module Dnsimple
64
64
  # @example Creating a template:
65
65
  # client.templates.create_template(1010, name: "Pi", short_name: "pi", description: "Pi template")
66
66
  #
67
- # @param [Fixnum] account_id the account ID
67
+ # @param [Integer] account_id the account ID
68
68
  # @param [Hash] attributes
69
69
  # @param [Hash] options
70
70
  # @return [Dnsimple::Response<Dnsimple::Struct::Template>]
@@ -84,7 +84,7 @@ module Dnsimple
84
84
  # @example Get template 5401 in account 1010:
85
85
  # client.templates.template(1010, 5401)
86
86
  #
87
- # @param [Fixnum] account_id the account ID
87
+ # @param [Integer] account_id the account ID
88
88
  # @param [#to_s] template_id The template ID
89
89
  # @param [Hash] options
90
90
  # @return [Dnsimple::Response<Dnsimple::Struct::Template>]
@@ -104,7 +104,7 @@ module Dnsimple
104
104
  # @example Change the name of template 1 in account 1010:
105
105
  # client.templates.update_template(1010, 1, name: "New name")
106
106
  #
107
- # @param [Fixnum] account_id the account ID
107
+ # @param [Integer] account_id the account ID
108
108
  # @param [#to_s] template_id The template ID
109
109
  # @param [Hash] attributes
110
110
  # @param [Hash] options
@@ -127,7 +127,7 @@ module Dnsimple
127
127
  # @example Delete template 5401 in account 1010:
128
128
  # client.templates.delete_template(1010, 5401)
129
129
  #
130
- # @param [Fixnum] account_id The account ID
130
+ # @param [Integer] account_id The account ID
131
131
  # @param [#to_s] template_id The template ID
132
132
  # @param [Hash] options
133
133
  # @return [Dnsimple::Response<nil>]
@@ -9,7 +9,7 @@ module Dnsimple
9
9
  # @example Apply template 5401 for example.com in account 1010:
10
10
  # client.templates.apply_template(1010, 5401, "example.com")
11
11
  #
12
- # @param [Fixnum] account_id The account ID
12
+ # @param [Integer] account_id The account ID
13
13
  # @param [#to_s] template_id The template ID
14
14
  # @param [#to_s] domain_id The Domain ID or name
15
15
  # @param [Hash] options
@@ -16,7 +16,7 @@ module Dnsimple
16
16
  # @example List records for the template "alpha", providing sorting policy
17
17
  # client.templates.records(1010, "alpha", sort: "type:asc")
18
18
  #
19
- # @param [Fixnum] account_id the account ID
19
+ # @param [Integer] account_id the account ID
20
20
  # @param [String] template_id the template name
21
21
  # @param [Hash] options the filtering and sorting options
22
22
  # @option options [Integer] :page current page (pagination)
@@ -48,7 +48,7 @@ module Dnsimple
48
48
  # @example List all the records for "alpha template
49
49
  # client.templates.all_records(1010, "alpha")
50
50
  #
51
- # @param [Fixnum] account_id the account ID
51
+ # @param [Integer] account_id the account ID
52
52
  # @param [String] template_id the template name
53
53
  # @param [Hash] options the filtering and sorting options
54
54
  # @option options [Integer] :page current page (pagination)
@@ -69,7 +69,7 @@ module Dnsimple
69
69
  # @example Create an A record for "alpha" template
70
70
  # client.templates.create_record(1010, "alpha", name: "", type: "A", content: "192.168.1.1", ttl: 600)
71
71
  #
72
- # @param [Fixnum] account_id the account ID
72
+ # @param [Integer] account_id the account ID
73
73
  # @param [String] template_id the template name
74
74
  # @param [Hash] attributes
75
75
  # @param [Hash] options
@@ -92,9 +92,9 @@ module Dnsimple
92
92
  # @example Get record 123 in "alpha template
93
93
  # client.templates.record(1010, "alpha", 123)
94
94
  #
95
- # @param [Fixnum] account_id the account ID
95
+ # @param [Integer] account_id the account ID
96
96
  # @param [String] template_id the template name
97
- # @param [Fixnum] record_id the record ID
97
+ # @param [Integer] record_id the record ID
98
98
  # @param [Hash] options
99
99
  # @return [Dnsimple::Response<Dnsimple::Struct::TemplateRecord>]
100
100
  #
@@ -116,9 +116,9 @@ module Dnsimple
116
116
  # @example Delete record 123 in "alpha template
117
117
  # client.templates.delete_record(1010, "alpha", 123)
118
118
  #
119
- # @param [Fixnum] account_id the account ID
119
+ # @param [Integer] account_id the account ID
120
120
  # @param [String] template_id the template name
121
- # @param [Fixnum] record_id the record ID
121
+ # @param [Integer] record_id the record ID
122
122
  # @param [Hash] options
123
123
  # @return [Dnsimple::Response<nil>]
124
124
  #
@@ -9,7 +9,7 @@ module Dnsimple
9
9
  # @example Enable vanity name servers for example.com:
10
10
  # client.vanity_name_servers.enable(1010, "example.com")
11
11
  #
12
- # @param [Fixnum] account_id the account ID
12
+ # @param [Integer] account_id the account ID
13
13
  # @param [#to_s] domain_name the domain name
14
14
  # @param [Hash] options
15
15
  # @return [Dnsimple::Response<Array>]
@@ -29,7 +29,7 @@ module Dnsimple
29
29
  # @example Disable vanity name servers for example.com:
30
30
  # client.vanity_name_servers.disable(1010, "example.com")
31
31
  #
32
- # @param [Fixnum] account_id the account ID
32
+ # @param [Integer] account_id the account ID
33
33
  # @param [#to_s] domain_name the domain name
34
34
  # @param [Hash] options
35
35
  # @return [Dnsimple::Response<nil>]
@@ -15,7 +15,7 @@ module Dnsimple
15
15
  # @example List all webhooks, provide sorting policy
16
16
  # client.webhooks.list(1010, sort: "id:asc")
17
17
  #
18
- # @param [Fixnum] account_id the account ID
18
+ # @param [Integer] account_id the account ID
19
19
  # @param [Hash] options the filtering and sorting options
20
20
  # @option options [Integer] :page current page (pagination)
21
21
  # @option options [Integer] :per_page number of entries to return (pagination)
@@ -35,7 +35,7 @@ module Dnsimple
35
35
  #
36
36
  # @see https://developer.dnsimple.com/v2/webhooks/#create
37
37
  #
38
- # @param [Fixnum] account_id the account ID
38
+ # @param [Integer] account_id the account ID
39
39
  # @param [Hash] attributes
40
40
  # @param [Hash] options
41
41
  # @return [Dnsimple::Response<Dnsimple::Struct::Webhook>]
@@ -53,7 +53,7 @@ module Dnsimple
53
53
  #
54
54
  # @see https://developer.dnsimple.com/v2/webhooks/#get
55
55
  #
56
- # @param [Fixnum] account_id the account ID
56
+ # @param [Integer] account_id the account ID
57
57
  # @param [#to_s] webhook_id The webhook ID
58
58
  # @param [Hash] options
59
59
  # @return [Dnsimple::Response<Dnsimple::Struct::Webhook>]
@@ -72,7 +72,7 @@ module Dnsimple
72
72
  #
73
73
  # @see https://developer.dnsimple.com/v2/webooks/#delete
74
74
  #
75
- # @param [Fixnum] account_id the account ID
75
+ # @param [Integer] account_id the account ID
76
76
  # @param [#to_s] webhook_id The webhook ID
77
77
  # @param [Hash] options
78
78
  # @return [Dnsimple::Response<nil>]
@@ -19,7 +19,7 @@ module Dnsimple
19
19
  # @example List zones, provide filtering policy
20
20
  # client.zones.list(1010, "example.com", filter: { name_like: "example" })
21
21
  #
22
- # @param [Fixnum] account_id the account ID
22
+ # @param [Integer] account_id the account ID
23
23
  # @param [Hash] options the filtering and sorting options
24
24
  # @option options [Integer] :page current page (pagination)
25
25
  # @option options [Integer] :per_page number of entries to return (pagination)
@@ -47,7 +47,7 @@ module Dnsimple
47
47
  # @see https://developer.dnsimple.com/v2/zones/#list
48
48
  # @see #zones
49
49
  #
50
- # @param [Fixnum] account_id the account ID
50
+ # @param [Integer] account_id the account ID
51
51
  # @param [Hash] options the filtering and sorting options
52
52
  # @option options [Integer] :page current page (pagination)
53
53
  # @option options [Integer] :per_page number of entries to return (pagination)
@@ -64,7 +64,7 @@ module Dnsimple
64
64
  #
65
65
  # @see https://developer.dnsimple.com/v2/zones/#get
66
66
  #
67
- # @param [Fixnum] account_id the account ID
67
+ # @param [Integer] account_id the account ID
68
68
  # @param [#to_s] zone_id the zone name
69
69
  # @param [Hash] options
70
70
  # @return [Dnsimple::Response<Dnsimple::Struct::Zone>]
@@ -81,7 +81,7 @@ module Dnsimple
81
81
  #
82
82
  # @see https://developer.dnsimple.com/v2/zones/#get-file
83
83
  #
84
- # @param [Fixnum] account_id the account ID
84
+ # @param [Integer] account_id the account ID
85
85
  # @param [#to_s] zone_name the zone name
86
86
  # @param [Hash] options
87
87
  # @return [Dnsimple::Response<Dnsimple::Struct::ZoneFile>]
@@ -19,7 +19,7 @@ module Dnsimple
19
19
  # @example List records for the zone "example.com", provide filtering policy
20
20
  # client.zones.records(1010, "example.com", sort: "type:asc")
21
21
  #
22
- # @param [Fixnum] account_id the account ID
22
+ # @param [Integer] account_id the account ID
23
23
  # @param [String] zone_id the zone name
24
24
  # @param [Hash] options the filtering and sorting options
25
25
  # @option options [Integer] :page current page (pagination)
@@ -52,7 +52,7 @@ module Dnsimple
52
52
  # @example List all records for the zone "example.com"
53
53
  # client.zones.all_records(1010, "example.com")
54
54
  #
55
- # @param [Fixnum] account_id the account ID
55
+ # @param [Integer] account_id the account ID
56
56
  # @param [String] zone_id the zone name
57
57
  # @param [Hash] options the filtering and sorting options
58
58
  # @option options [Integer] :page current page (pagination)
@@ -75,7 +75,7 @@ module Dnsimple
75
75
  # @example Create a URL record in zone "example.com"
76
76
  # client.zones.create_record(1010, "example.com", name: "www", type: "url", content: "example.com")
77
77
  #
78
- # @param [Fixnum] account_id the account ID
78
+ # @param [Integer] account_id the account ID
79
79
  # @param [String] zone_id the zone name
80
80
  # @param [Hash] attributes
81
81
  # @param [Hash] options
@@ -98,9 +98,9 @@ module Dnsimple
98
98
  # @example Get record 123 in zone "example.com"
99
99
  # client.zones.record(1010, "example.com", 123)
100
100
  #
101
- # @param [Fixnum] account_id the account ID
101
+ # @param [Integer] account_id the account ID
102
102
  # @param [String] zone_id the zone name
103
- # @param [Fixnum] record_id the record ID
103
+ # @param [Integer] record_id the record ID
104
104
  # @param [Hash] options
105
105
  # @return [Dnsimple::Response<Dnsimple::Struct::ZoneRecord>]
106
106
  #
@@ -119,9 +119,9 @@ module Dnsimple
119
119
  # @example Update the TTL to 600 of record 123 in zone "example.com"
120
120
  # client.zones.update_record(1010, "example.com", 123, ttl: 600)
121
121
  #
122
- # @param [Fixnum] account_id the account ID
122
+ # @param [Integer] account_id the account ID
123
123
  # @param [String] zone_id the zone name
124
- # @param [Fixnum] record_id the record ID
124
+ # @param [Integer] record_id the record ID
125
125
  # @param [Hash] attributes
126
126
  # @param [Hash] options
127
127
  # @return [Dnsimple::Response<Dnsimple::Struct::ZoneRecord>]
@@ -144,9 +144,9 @@ module Dnsimple
144
144
  # @example Delete record 123 in zone "example.com"
145
145
  # client.zones.delete_record(1010, "example.com", 123)
146
146
  #
147
- # @param [Fixnum] account_id the account ID
147
+ # @param [Integer] account_id the account ID
148
148
  # @param [String] zone_id the zone name
149
- # @param [Fixnum] record_id the record ID
149
+ # @param [Integer] record_id the record ID
150
150
  # @param [Hash] options
151
151
  # @return [Dnsimple::Response<nil>]
152
152
  #
@@ -11,15 +11,15 @@ module Dnsimple
11
11
  # @return [Struct::Base, Array] The content of the response data field.
12
12
  attr_reader :data
13
13
 
14
- # @return [Fixnum] The maximum number of requests this authentication context can perform per hour.
14
+ # @return [Integer] The maximum number of requests this authentication context can perform per hour.
15
15
  # @see https://developer.dnsimple.com/v2/#rate-limiting
16
16
  attr_reader :rate_limit
17
17
 
18
- # @return [Fixnum] The number of requests remaining in the current rate limit window.
18
+ # @return [Integer] The number of requests remaining in the current rate limit window.
19
19
  # @see https://developer.dnsimple.com/v2/#rate-limiting
20
20
  attr_reader :rate_limit_remaining
21
21
 
22
- # @return [Fixnum] The time at which the current rate limit window in Unix time format.
22
+ # @return [Integer] The time at which the current rate limit window in Unix time format.
23
23
  # @see https://developer.dnsimple.com/v2/#rate-limiting
24
24
  attr_reader :rate_limit_reset
25
25
 
@@ -47,16 +47,16 @@ module Dnsimple
47
47
  # The PaginatedResponse is a specific type of Response that also exposes pagination metadata.
48
48
  class PaginatedResponse < CollectionResponse
49
49
 
50
- # @return [Fixnum] The current page.
50
+ # @return [Integer] The current page.
51
51
  attr_reader :page
52
52
 
53
- # @return [Fixnum] The number of records per page.
53
+ # @return [Integer] The number of records per page.
54
54
  attr_reader :per_page
55
55
 
56
- # @return [Fixnum] The total number of records.
56
+ # @return [Integer] The total number of records.
57
57
  attr_reader :total_entries
58
58
 
59
- # @return [Fixnum] The total number of pages.
59
+ # @return [Integer] The total number of pages.
60
60
  attr_reader :total_pages
61
61
 
62
62
 
@@ -20,7 +20,11 @@ require_relative 'struct/certificate'
20
20
  require_relative 'struct/certificate_bundle'
21
21
  require_relative 'struct/domain'
22
22
  require_relative 'struct/domain_check'
23
+ require_relative 'struct/domain_premium_price'
23
24
  require_relative 'struct/domain_push'
25
+ require_relative 'struct/domain_registration'
26
+ require_relative 'struct/domain_transfer'
27
+ require_relative 'struct/domain_renewal'
24
28
  require_relative 'struct/email_forward'
25
29
  require_relative 'struct/extended_attribute'
26
30
  require_relative 'struct/oauth_token'
@@ -2,7 +2,7 @@ module Dnsimple
2
2
  module Struct
3
3
 
4
4
  class Account < Base
5
- # @return [Fixnum] The account ID in DNSimple.
5
+ # @return [Integer] The account ID in DNSimple.
6
6
  attr_accessor :id
7
7
 
8
8
  # @return [String] The account email.
@@ -2,16 +2,16 @@ module Dnsimple
2
2
  module Struct
3
3
 
4
4
  class Certificate < Base
5
- # @return [Fixnum] The certificate ID in DNSimple.
5
+ # @return [Integer] The certificate ID in DNSimple.
6
6
  attr_accessor :id
7
7
 
8
- # @return [Fixnum] The associated domain ID.
8
+ # @return [Integer] The associated domain ID.
9
9
  attr_accessor :domain_id
10
10
 
11
11
  # @return [String] The certificate common name.
12
12
  attr_accessor :common_name
13
13
 
14
- # @return [Fixnum] The years the certificate will last.
14
+ # @return [Integer] The years the certificate will last.
15
15
  attr_accessor :years
16
16
 
17
17
  # @return [String] The certificate CSR.
@@ -2,16 +2,16 @@ module Dnsimple
2
2
  module Struct
3
3
 
4
4
  class Collaborator < Base
5
- # @return [Fixnum] The collaborator ID in DNSimple.
5
+ # @return [Integer] The collaborator ID in DNSimple.
6
6
  attr_accessor :id
7
7
 
8
- # @return [Fixnum] The associated domain ID.
8
+ # @return [Integer] The associated domain ID.
9
9
  attr_accessor :domain_id
10
10
 
11
11
  # @return [String] The associated domain name.
12
12
  attr_accessor :domain_name
13
13
 
14
- # @return [Fixnum,NilClass] The user ID, if the collaborator accepted the invitation.
14
+ # @return [Integer, NilClass] The user ID, if the collaborator accepted the invitation.
15
15
  attr_accessor :user_id
16
16
 
17
17
  # @return [String] The user email.
@@ -2,10 +2,10 @@ module Dnsimple
2
2
  module Struct
3
3
 
4
4
  class Contact < Base
5
- # @return [Fixnum] The contact ID in DNSimple.
5
+ # @return [Integer] The contact ID in DNSimple.
6
6
  attr_accessor :id
7
7
 
8
- # @return [Fixnum] The associated account ID.
8
+ # @return [Integer] The associated account ID.
9
9
  attr_accessor :account_id
10
10
 
11
11
  # @return [String] The label to represent the contact.
@@ -2,13 +2,13 @@ module Dnsimple
2
2
  module Struct
3
3
 
4
4
  class Domain < Base
5
- # @return [Fixnum] The domain ID in DNSimple.
5
+ # @return [Integer] The domain ID in DNSimple.
6
6
  attr_accessor :id
7
7
 
8
- # @return [Fixnum] The associated account ID.
8
+ # @return [Integer] The associated account ID.
9
9
  attr_accessor :account_id
10
10
 
11
- # @return [Fixnum] The associated registrant (contact) ID.
11
+ # @return [Integer] The associated registrant (contact) ID.
12
12
  attr_accessor :registrant_id
13
13
 
14
14
  # @return [String] The domain name.