Skip to content

Commit

Permalink
Update ruby/store.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Ventata committed Aug 10, 2012
1 parent d34ff46 commit 5b58f94
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ruby/store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def self.create(apiKey,info) #creates a new store at ventata.com
http.use_ssl = true
request.content_type = 'application/json'
request.body = jsondata.to_s
#request["Accept"] = 'application/json'
request["Accept"] = 'application/json'
response=http.start do |h|
h.request(request)
end
Expand All @@ -50,7 +50,7 @@ def self.modify(apiKey,info) #modify an exiting store by store Id
http.use_ssl = true
request.content_type = 'application/json'
request.body = jsondata.to_s
#request["Accept"] = 'application/json'
request["Accept"] = 'application/json'
response=http.start do |h|
h.request(request)
end
Expand Down Expand Up @@ -84,9 +84,7 @@ def self.all(apiKey) #Retrieved all store data
request = Net::HTTP::Get.new(url.request_uri)
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request.content_type = 'application/json'

#request["Accept"] = 'application/json'
request["Accept"] = 'application/json'
response=http.start do |h|
h.request(request)
end
Expand Down

0 comments on commit 5b58f94

Please sign in to comment.