Skip to content

Instantly share code, notes, and snippets.

@vendethiel
Last active December 20, 2015 07:19
Show Gist options
  • Save vendethiel/6092964 to your computer and use it in GitHub Desktop.
Save vendethiel/6092964 to your computer and use it in GitHub Desktop.
class @MediaItemsAPI
constructor: (options = {}) ->
console.log this.options
# this.options = _.extend this.options, options
if not this.key? and not this.options.key?
Meteor.Erros.throw "No API key has been set. Please set and API key and try again."
@key = options.key
@services = options.services
@extensions = options.extensions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment