Class: ZiggeoMetaProfiles

Inherits:
Object
  • Object
show all
Defined in:
lib/classes/ZiggeoMetaProfiles.rb

Instance Method Summary collapse

Constructor Details

#initialize(application) ⇒ ZiggeoMetaProfiles

Returns a new instance of ZiggeoMetaProfiles.



3
4
5
# File 'lib/classes/ZiggeoMetaProfiles.rb', line 3

def initialize(application)
  @application = application
end

Instance Method Details

#create(data = nil) ⇒ Object



7
8
9
# File 'lib/classes/ZiggeoMetaProfiles.rb', line 7

def create(data = nil)
  return @application.connect.postJSON('/v1/metaprofiles/', data)
end

#delete(token_or_key) ⇒ Object



19
20
21
# File 'lib/classes/ZiggeoMetaProfiles.rb', line 19

def delete(token_or_key)
  return @application.connect.delete('/v1/metaprofiles/' + token_or_key + '')
end

#get(token_or_key) ⇒ Object



15
16
17
# File 'lib/classes/ZiggeoMetaProfiles.rb', line 15

def get(token_or_key)
  return @application.connect.getJSON('/v1/metaprofiles/' + token_or_key + '')
end

#index(data = nil) ⇒ Object



11
12
13
# File 'lib/classes/ZiggeoMetaProfiles.rb', line 11

def index(data = nil)
  return @application.connect.getJSON('/v1/metaprofiles/', data)
end