Class: Sifterology::Session

Inherits:
Object
  • Object
show all
Defined in:
lib/sifterology/session.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account_url, token, options = {}) ⇒ Session

Returns a new instance of Session.



7
8
9
10
11
# File 'lib/sifterology/session.rb', line 7

def initialize(, token, options={})
  @account_url   = 
  @token         = token
  @partner_token = options[:partner_token]
end

Instance Attribute Details

#account_urlObject (readonly)

Returns the value of attribute account_url.



5
6
7
# File 'lib/sifterology/session.rb', line 5

def 
  @account_url
end

#partner_tokenObject (readonly)

Returns the value of attribute partner_token.



5
6
7
# File 'lib/sifterology/session.rb', line 5

def partner_token
  @partner_token
end

#tokenObject (readonly)

Returns the value of attribute token.



5
6
7
# File 'lib/sifterology/session.rb', line 5

def token
  @token
end

Instance Method Details

#commitsObject



17
18
19
# File 'lib/sifterology/session.rb', line 17

def commits
  CommitFactory.new(self)
end

#projectsObject



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

def projects
  ProjectFactory.new(self)
end