Class: Yamlt::LanguagePair

Inherits:
Object
  • Object
show all
Defined in:
lib/yamlt/language_pair.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(from: "en", to: "ru") ⇒ LanguagePair

Returns a new instance of LanguagePair


8
9
10
11
# File 'lib/yamlt/language_pair.rb', line 8

def initialize(from: "en", to: "ru")
  @from = from
  @to = to
end

Instance Attribute Details

#fromObject (readonly)

Returns the value of attribute from


13
14
15
# File 'lib/yamlt/language_pair.rb', line 13

def from
  @from
end

#toObject (readonly)

Returns the value of attribute to


13
14
15
# File 'lib/yamlt/language_pair.rb', line 13

def to
  @to
end