Module: Transifex::Request
- Included in:
- Account
- Defined in:
- lib/transifex/request.rb
Instance Method Summary collapse
Instance Method Details
#connection ⇒ Object
11 12 13 |
# File 'lib/transifex/request.rb', line 11 def connection @connection ||= make_connection(@username, @password) end |
#get(path, params = {}) ⇒ Object
15 16 17 |
# File 'lib/transifex/request.rb', line 15 def get(path, params = {}) connection.get(build_path(path), params).body end |
#set_credentials(username, password) ⇒ Object
6 7 8 9 |
# File 'lib/transifex/request.rb', line 6 def set_credentials(username, password) @username = username @password = password end |