Module: Sheep

Defined in:
lib/sheep.rb,
lib/sheep/user.rb,
lib/sheep/error.rb,
lib/sheep/version.rb,
lib/sheep/activity.rb

Defined Under Namespace

Classes: Activity, BadRequest, Error, ErrorResponse, NotFound, UnknownError, User

Constant Summary collapse

VERSION =
"0.1.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.access_tokenObject

Returns the value of attribute access_token.



13
14
15
# File 'lib/sheep.rb', line 13

def access_token
  @access_token
end

.client_idObject

Returns the value of attribute client_id.



13
14
15
# File 'lib/sheep.rb', line 13

def client_id
  @client_id
end

.client_secretObject

Returns the value of attribute client_secret.



13
14
15
# File 'lib/sheep.rb', line 13

def client_secret
  @client_secret
end

Class Method Details

.connectionObject



15
16
17
18
19
20
# File 'lib/sheep.rb', line 15

def connection
  @connection ||= Apis::Connection.new(:uri => 'http://api-tuppy-com.heroku.com/') do
    use Sheep::ErrorResponse
    use Apis::Middleware::Response::Json
  end
end