megam_api 1.10.5 → 1.10.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3d55230e517621050788df93dd6c02254ac6ad4
4
- data.tar.gz: e7d7d0825b2ab4916aa21ddfc030d3301deb5edc
3
+ metadata.gz: da53d6f54a414cad8de354c5d039df9973f80e23
4
+ data.tar.gz: 5111162149d9b2d7404e52059eb2a52084928332
5
5
  SHA512:
6
- metadata.gz: 21bf32e7a86fa5b6d793aa39942285a2ac56fb1b36e84ac9ee9718ef51a689450befab05579f57cef119b6d6b78dbb5e43ae52c25783df64a2f474f2f36c8c2a
7
- data.tar.gz: 624cc0ece9488b61ced9cbf94109fd52a2e296133cbced0dfd075f8939a7f392ae2d456b70f4d24c0f3f3af9273f2f52e445a5b3c0872f88d7b3c0902c31597a
6
+ metadata.gz: a1ca83f52cbd03623aeb0fd8ff4c24c8b6b94c2867d99d29526abde36c41648ef5c1c58b0105a847e94712b036080e9bb79e5edbc87d74eea06e114349b8ca4b
7
+ data.tar.gz: cd12f837cd9f414044ac1ae45ae15d7266c2a70bec5518626d4e48a930a6d780aa101152bdf561268c11820bb49a2c28c76d9581dd2b408458be4845bca5a27f
@@ -58,6 +58,17 @@ module Megam
58
58
  )
59
59
  end
60
60
 
61
+ def delete_accounts(delete_account)
62
+ @options = {path: "/admin/accounts/#{delete_account["email"]}",
63
+ :body => ''}.merge(@options)
64
+
65
+ request(
66
+ :expects => 200,
67
+ :method => :delete,
68
+ :body => @options[:body]
69
+ )
70
+ end
71
+
61
72
  def password_reset(account)
62
73
  @options = {:path => "/accounts/password_reset", passthru: true,
63
74
  body: Megam::JSONCompat.to_json(account)}.merge(@options)
@@ -1,5 +1,5 @@
1
1
  module Megam
2
2
  class API
3
- VERSION = "1.10.5"
3
+ VERSION = "1.10.6"
4
4
  end
5
5
  end
@@ -189,6 +189,15 @@ module Megam
189
189
  acct.forgot
190
190
  end
191
191
 
192
+ def self.remove(o)
193
+ acct = from_hash(o)
194
+ acct.remove
195
+ end
196
+
197
+ def remove
198
+ megam_rest.delete_accounts(to_hash)
199
+ end
200
+
192
201
  def self.password_reset(o)
193
202
  acct = from_hash(o)
194
203
  acct.password_reset
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: megam_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.5
4
+ version: 1.10.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajthilak, Kishorekumar Neelamegam, Ranjitha R, Vinodhini V, Rathish VBR, Rajesh