Class: Sifterology::Session
- Inherits:
-
Object
- Object
- Sifterology::Session
- Defined in:
- lib/sifterology/session.rb
Instance Attribute Summary collapse
-
#account_url ⇒ Object
readonly
Returns the value of attribute account_url.
-
#partner_token ⇒ Object
readonly
Returns the value of attribute partner_token.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
- #commits ⇒ Object
-
#initialize(account_url, token, options = {}) ⇒ Session
constructor
A new instance of Session.
- #projects ⇒ Object
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(account_url, token, ={}) @account_url = account_url @token = token @partner_token = [:partner_token] end |
Instance Attribute Details
#account_url ⇒ Object (readonly)
Returns the value of attribute account_url.
5 6 7 |
# File 'lib/sifterology/session.rb', line 5 def account_url @account_url end |
#partner_token ⇒ Object (readonly)
Returns the value of attribute partner_token.
5 6 7 |
# File 'lib/sifterology/session.rb', line 5 def partner_token @partner_token end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
5 6 7 |
# File 'lib/sifterology/session.rb', line 5 def token @token end |
Instance Method Details
#commits ⇒ Object
17 18 19 |
# File 'lib/sifterology/session.rb', line 17 def commits CommitFactory.new(self) end |
#projects ⇒ Object
13 14 15 |
# File 'lib/sifterology/session.rb', line 13 def projects ProjectFactory.new(self) end |