yandex_domains 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/yandex_domains/admin/domain.rb +24 -1
- data/lib/yandex_domains/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40bb6d2ecfebe85272532b03c636931222dc519e
|
4
|
+
data.tar.gz: ad163eb9ea1f450d838bf99b393145ce011ac31c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f19fa079aa9af25ffb7a65ee58571902b3eb2669b2ecace0c53fd7e7b889e6adc9c485070b4c8c1e1b0d20f33d0f1178ac6257a35c1fdff8be1f9ae7a82c887
|
7
|
+
data.tar.gz: 09b5f19eef7380f1f146d54e690c95c049f15c605e16e302beec465029dd939d376d126eb1da1f0362421af3ac0e1356863e29746d095770b0cb0cbf9be91a74
|
@@ -44,7 +44,6 @@ module YandexDomains
|
|
44
44
|
req.parsed_response
|
45
45
|
end
|
46
46
|
|
47
|
-
|
48
47
|
# Used for deleting a domain that was connected by a user. All the domain's mailboxes will also be deleted.
|
49
48
|
# @param [String] domain
|
50
49
|
# @return [Hash] Parsed Response
|
@@ -66,6 +65,30 @@ module YandexDomains
|
|
66
65
|
req = self.class.post("/admin/domain/delete", {query: {domain: domain}})
|
67
66
|
req.parsed_response
|
68
67
|
end
|
68
|
+
|
69
|
+
# Used for setting the language of the email interface for the domain.
|
70
|
+
# @param [String] domain
|
71
|
+
# @param [String] country code
|
72
|
+
# @return [Hash] Parsed Response
|
73
|
+
# @example Example Usage
|
74
|
+
# client.delete('google.com)
|
75
|
+
# @example Return Hash if domain exists
|
76
|
+
# {
|
77
|
+
# "country": "en",
|
78
|
+
# "domain": "google.com",
|
79
|
+
# "success": "ok"
|
80
|
+
# }
|
81
|
+
# @example Return Hash if domain doesn't exist
|
82
|
+
# {
|
83
|
+
# "domain": "google.com",
|
84
|
+
# "success": "error",
|
85
|
+
# "error": "not_allowed"
|
86
|
+
# }
|
87
|
+
# @see https://tech.yandex.com/domain/doc/reference/domain-settings-set-country-docpage/
|
88
|
+
def set_country(domain, country)
|
89
|
+
req = self.class.post("/admin/domain/settings/set_country", {query: {domain: domain, country: country}})
|
90
|
+
req.parsed_response
|
91
|
+
end
|
69
92
|
end
|
70
93
|
end
|
71
94
|
end
|