Class: LinkageService
- Inherits:
-
Object
- Object
- LinkageService
- Includes:
- Rulable
- Defined in:
- lib/services/linkage_service.rb
Constant Summary
Constants included from Rulable
Rulable::CSV_FILENAMES, Rulable::DATA_PATH, Rulable::JSON_FILENAMES
Instance Attribute Summary collapse
-
#phonetic_text ⇒ Object
Returns the value of attribute phonetic_text.
-
#prepared_text ⇒ Object
Returns the value of attribute prepared_text.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(prepared_text, phonetic_text) ⇒ LinkageService
constructor
A new instance of LinkageService.
Methods included from Rulable
#absolute_path_for, included, #memoize_file_content, #parse_csv, #parse_rule_file
Constructor Details
#initialize(prepared_text, phonetic_text) ⇒ LinkageService
Returns a new instance of LinkageService.
8 9 10 11 |
# File 'lib/services/linkage_service.rb', line 8 def initialize(prepared_text, phonetic_text) @prepared_text = prepared_text @phonetic_text = phonetic_text end |
Instance Attribute Details
#phonetic_text ⇒ Object
Returns the value of attribute phonetic_text.
6 7 8 |
# File 'lib/services/linkage_service.rb', line 6 def phonetic_text @phonetic_text end |
#prepared_text ⇒ Object
Returns the value of attribute prepared_text.
6 7 8 |
# File 'lib/services/linkage_service.rb', line 6 def prepared_text @prepared_text end |
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'lib/services/linkage_service.rb', line 13 def call apply_linkage end |