Class: Txdb::TransifexProject
- Inherits:
-
Object
- Object
- Txdb::TransifexProject
- Defined in:
- lib/txdb/transifex_project.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
readonly
Returns the value of attribute api.
-
#organization ⇒ Object
readonly
Returns the value of attribute organization.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#project_slug ⇒ Object
readonly
Returns the value of attribute project_slug.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
-
#webhook_secret ⇒ Object
readonly
Returns the value of attribute webhook_secret.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ TransifexProject
constructor
A new instance of TransifexProject.
Constructor Details
#initialize(options = {}) ⇒ TransifexProject
Returns a new instance of TransifexProject.
8 9 10 11 12 13 14 15 |
# File 'lib/txdb/transifex_project.rb', line 8 def initialize( = {}) @organization = .fetch(:organization) @project_slug = .fetch(:project_slug) @username = .fetch(:username) @password = .fetch(:password) @webhook_secret = .fetch(:webhook_secret) @api = Txgh::TransifexApi.create_from_credentials(username, password) end |
Instance Attribute Details
#api ⇒ Object (readonly)
Returns the value of attribute api.
6 7 8 |
# File 'lib/txdb/transifex_project.rb', line 6 def api @api end |
#organization ⇒ Object (readonly)
Returns the value of attribute organization.
5 6 7 |
# File 'lib/txdb/transifex_project.rb', line 5 def organization @organization end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
5 6 7 |
# File 'lib/txdb/transifex_project.rb', line 5 def password @password end |
#project_slug ⇒ Object (readonly)
Returns the value of attribute project_slug.
5 6 7 |
# File 'lib/txdb/transifex_project.rb', line 5 def project_slug @project_slug end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
5 6 7 |
# File 'lib/txdb/transifex_project.rb', line 5 def username @username end |
#webhook_secret ⇒ Object (readonly)
Returns the value of attribute webhook_secret.
6 7 8 |
# File 'lib/txdb/transifex_project.rb', line 6 def webhook_secret @webhook_secret end |