Class: CloudApp::Base

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/cloudapp/base.rb

Overview

Base class for setting HTTParty configurations globally

Direct Known Subclasses

Account, Drop, GiftCard

Class Method Summary (collapse)

Class Method Details

+ (Hash) authenticate(email, password)

Sets the authentication credentials in a class variable.

Parameters:

  • email (String)

    cl.ly email

  • password (String)

    cl.ly password

Returns:

  • (Hash)

    authentication credentials



25
26
27
# File 'lib/cloudapp/base.rb', line 25

def self.authenticate(email, password)
  @@auth = {:username => email, :password => password}
end