class ZiggeoAuthtokens

Public Class Methods

new(application) click to toggle source
# File lib/classes/ZiggeoAuthtokens.rb, line 3
def initialize(application)
  @application = application
end

Public Instance Methods

create(data = nil) click to toggle source
# File lib/classes/ZiggeoAuthtokens.rb, line 19
def create(data = nil)
  return @application.connect.postJSON('/v1/authtokens/', data)
end
delete(token_or_key) click to toggle source
# File lib/classes/ZiggeoAuthtokens.rb, line 15
def delete(token_or_key)
  return @application.connect.delete('/v1/authtokens/' + token_or_key + '')
end
get(token) click to toggle source
# File lib/classes/ZiggeoAuthtokens.rb, line 7
def get(token)
  return @application.connect.getJSON('/v1/authtokens/' + token + '')
end
update(token_or_key, data = nil) click to toggle source
# File lib/classes/ZiggeoAuthtokens.rb, line 11
def update(token_or_key, data = nil)
  return @application.connect.postJSON('/v1/authtokens/' + token_or_key + '', data)
end