lib/crowdskout/api.rb in crowdskout-0.0.4 vs lib/crowdskout/api.rb in crowdskout-0.0.5
- old
+ new
@@ -1,5 +1,11 @@
+#
+# api.rb
+# Crowdskout
+#
+# Copyright (c) 2016 Kyle Schutt. All rights reserved.
+
module Crowdskout
class Api
# Class constructor
# @param [String] api_key - Crowdskout API Key
# @param [String] access_token - Crowdskout OAuth2 access token
@@ -17,11 +23,11 @@
# Profile Service Methods
def get_profile(profile_id, collections)
Services::ProfileService.get_profile(profile_id, collections)
end
- def create_profile(profile, params = {})
+ def create_profile(profile)
Services::ProfileService.create_profile(profile, params)
end
def create_profiles_bulk(profiles)
Services::ProfileService.create_profiles_bulk(profiles)
end
@@ -39,10 +45,10 @@
# Attribute Service Methods
def get_attributes(params = {})
Services::AttributeService.get_attributes(params)
end
- def get_attribute(attribute_id)
+ def get_attribute(attribute_id, params = {})
Services::AttributeService.get_attribute(attribute_id)
end
def create_attribute(name, type, options = nil)
Services::AttributeService.create_attribute(name, type, options)
end
\ No newline at end of file