Class: SmartlingApi::Configuration
- Inherits:
-
Struct
- Object
- Struct
- SmartlingApi::Configuration
- Defined in:
- lib/smartling_api/configuration.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#project_id ⇒ Object
Returns the value of attribute project_id.
-
#secret ⇒ Object
Returns the value of attribute secret.
Instance Method Summary collapse
-
#invalid? ⇒ Boolean
Check if id and secrets have been set.
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
2 3 4 |
# File 'lib/smartling_api/configuration.rb', line 2 def id @id end |
#project_id ⇒ Object
Returns the value of attribute project_id
2 3 4 |
# File 'lib/smartling_api/configuration.rb', line 2 def project_id @project_id end |
#secret ⇒ Object
Returns the value of attribute secret
2 3 4 |
# File 'lib/smartling_api/configuration.rb', line 2 def secret @secret end |
Instance Method Details
#invalid? ⇒ Boolean
Check if id and secrets have been set
6 7 8 |
# File 'lib/smartling_api/configuration.rb', line 6 def invalid? id.nil? || secret.nil? end |