Class: AgileTrello::TrelloFactory
- Inherits:
-
Object
- Object
- AgileTrello::TrelloFactory
- Includes:
- Trello, Trello::Authorization
- Defined in:
- lib/TrelloFactory.rb
Instance Method Summary collapse
Instance Method Details
#create(trello_credentials) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/TrelloFactory.rb', line 8 def create(trello_credentials) Trello::Authorization.const_set :AuthPolicy, OAuthPolicy OAuthPolicy.consumer_credential = OAuthCredential.new trello_credentials.public_key, 'SECRET' OAuthPolicy.token = OAuthCredential.new trello_credentials.access_token, nil TrelloRepository.new end |