Class: Glexchange::Model::PDLanguageDirection
- Inherits:
-
Object
- Object
- Glexchange::Model::PDLanguageDirection
- Defined in:
- lib/glexchange/model/LanguageDirection.rb
Instance Attribute Summary collapse
-
#sourceLanguage ⇒ Object
Returns the value of attribute sourceLanguage.
-
#targetLanguage ⇒ Object
Returns the value of attribute targetLanguage.
Instance Method Summary collapse
-
#initialize(externalLanguageDirection) ⇒ PDLanguageDirection
constructor
A new instance of PDLanguageDirection.
Constructor Details
#initialize(externalLanguageDirection) ⇒ PDLanguageDirection
Returns a new instance of PDLanguageDirection.
7 8 9 10 |
# File 'lib/glexchange/model/LanguageDirection.rb', line 7 def initialize(externalLanguageDirection) @sourceLanguage = externalLanguageDirection.sourceLanguage.locale; @targetLanguage = externalLanguageDirection.targetLanguage.locale; end |
Instance Attribute Details
#sourceLanguage ⇒ Object
Returns the value of attribute sourceLanguage.
5 6 7 |
# File 'lib/glexchange/model/LanguageDirection.rb', line 5 def sourceLanguage @sourceLanguage end |
#targetLanguage ⇒ Object
Returns the value of attribute targetLanguage.
6 7 8 |
# File 'lib/glexchange/model/LanguageDirection.rb', line 6 def targetLanguage @targetLanguage end |