Module: BugherdAPI

Extended by:
ActiveSupport::Autoload
Defined in:
lib/bugherd.rb,
lib/bugherd/base.rb,
lib/bugherd/task.rb,
lib/bugherd/user.rb,
lib/bugherd/comment.rb,
lib/bugherd/project.rb

Defined Under Namespace

Classes: Base, Comment, Error, Project, Task, User

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.emailObject

Returns the value of attribute email.



18
19
20
# File 'lib/bugherd.rb', line 18

def email
  @email
end

.passwordObject

Returns the value of attribute password.



18
19
20
# File 'lib/bugherd.rb', line 18

def password
  @password
end

Class Method Details

.authenticate(email, password) ⇒ Object



19
20
21
22
23
24
25
26
# File 'lib/bugherd.rb', line 19

def authenticate(email, password)
  self.email    = email
  self.password = password

  self::Base.user     = email
  self::Base.password = password

end

.resourcesObject



28
29
30
# File 'lib/bugherd.rb', line 28

def resources
  @resources ||= []
end