Module: Jammed

Defined in:
lib/jammed/jams.rb,
lib/jammed.rb,
lib/jammed/api.rb,
lib/jammed/base.rb,
lib/jammed/user.rb,
lib/jammed/likes.rb,
lib/jammed/errors.rb,
lib/jammed/person.rb,
lib/jammed/random.rb,
lib/jammed/version.rb,
lib/jammed/followers.rb,
lib/jammed/following.rb,
lib/jammed/popular_jams.rb,
lib/jammed/people_search.rb,
lib/jammed/suggested_people.rb

Overview

:nodoc:

Defined Under Namespace

Classes: API, BadRequest, Base, Followers, Following, HTTPError, InformJammed, Jams, Likes, NotFound, PeopleSearch, Person, PopularJams, RandomJam, RateLimited, ServerError, SuggestedPeople, Unavailable, User

Constant Summary collapse

VERSION =

:nodoc:

"0.1.3"

Class Method Summary collapse

Class Method Details

.new(api_key = '987bcab01b929eb2c07877b224215c92', opts = {}) ⇒ Object

Creates a Jammed::Base object for interacting with the API

Attributes

  • api_key - Sets the API key to use for all calls made with object

  • opts -Options hash

Options

  • :https - Toggle use of HTTPS (defaults to false)

Examples

jammed = Jammed.new('987bcab01b929eb2c07877b224215c92', :https => true)


23
24
25
# File 'lib/jammed.rb', line 23

def new(api_key='987bcab01b929eb2c07877b224215c92', opts={})
  Jammed::Base.new(api_key, opts)
end