megam_api 0.32 → 0.33

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0826a40528a05d8561f797d747d93773de1d4cd1
4
- data.tar.gz: b7ef4fde78dea0e49ddad65495c52e4dc2812f06
3
+ metadata.gz: 7e23211f08462d65c0de895ed7a5dcc43b12dde5
4
+ data.tar.gz: 396e9831ae1362ceb83cd37fcec307060ade9d39
5
5
  SHA512:
6
- metadata.gz: c45939250286b94bfd7f06b1ff4531d294552d4bd36e70bd87a9cfbd197f04f1c1bcbfaf6cd4d686a971ff896d1ec86f286d9500431dbf350e2962acad0766a6
7
- data.tar.gz: 4a851cebe8b7dd8fdb61ba2731d551afa8e63f5488789d201ff9d158bb5295fdfc564e87c928c2955b01dfc9270fe757c6526d06dc4b1446d6e6bea55ce096f2
6
+ metadata.gz: fc4bf07867408588694cc9ff6c40a2c77f4bb447a4c03aeba71abc90d3d3fff946894931c603c6d1f7357b3b550e7f1caf61f25399ab538174bc280a80748557
7
+ data.tar.gz: 3b667a7d31a9cdfc49cc42bd9160a99ba19992b003d8a2c983e117a2cd3179cb9643ae110c3bcdb574c2006de34fa7d87ee173803632658c7fb97cc6243604de
data/README.md CHANGED
File without changes
@@ -20,6 +20,16 @@ module Megam
20
20
  )
21
21
  end
22
22
 
23
+ def delete_predefcloud(predefcloud_name)
24
+ @options = {:path => "/predefclouds/#{predefcloud_name}",:body => ""}.merge(@options)
25
+
26
+ request(
27
+ :expects => 200,
28
+ :method => :delete,
29
+ :body => @options[:body]
30
+ )
31
+ end
32
+
23
33
  def post_predefcloud(new_predefcloud)
24
34
  @options = {:path => '/predefclouds/content',
25
35
  :body => Megam::JSONCompat.to_json(new_predefcloud)}.merge(@options)
@@ -1,5 +1,5 @@
1
1
  module Megam
2
2
  class API
3
- VERSION = "0.32"
3
+ VERSION = "0.33"
4
4
  end
5
5
  end
@@ -220,6 +220,11 @@ module Megam
220
220
  pre.megam_rest.get_predefcloud(p_name)
221
221
  end
222
222
 
223
+ def self.delete(p_name,tmp_email=nil, tmp_api_key=nil)
224
+ pre = self.new(tmp_email,tmp_api_key)
225
+ pre.megam_rest.delete_predefcloud(p_name)
226
+ end
227
+
223
228
  def to_s
224
229
  Megam::Stuff.styled_hash(to_hash)
225
230
  #"---> Megam::Account:[error=#{error?}]\n"+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: megam_api
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.32'
4
+ version: '0.33'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajthilak, Kishorekumar Neelamegam, Thomas Alrin, Yeshwanth Kumar, Subash Sethurajan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-05 00:00:00.000000000 Z
11
+ date: 2015-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon