Class: ZiggeoMetaProfiles
- Inherits:
-
Object
- Object
- ZiggeoMetaProfiles
- Defined in:
- lib/classes/ZiggeoMetaProfiles.rb
Instance Method Summary collapse
- #create(data = nil) ⇒ Object
- #delete(token_or_key) ⇒ Object
- #get(token_or_key) ⇒ Object
- #index(data = nil) ⇒ Object
-
#initialize(application) ⇒ ZiggeoMetaProfiles
constructor
A new instance of ZiggeoMetaProfiles.
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 |