Class: I18nFlow::Search::Item
- Inherits:
-
Object
- Object
- I18nFlow::Search::Item
- Defined in:
- lib/i18n_flow/search.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#locale ⇒ Object
readonly
Returns the value of attribute locale.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(locale:, file:, line:, column:, value:, score:) ⇒ Item
constructor
A new instance of Item.
Constructor Details
#initialize(locale:, file:, line:, column:, value:, score:) ⇒ Item
Returns a new instance of Item.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/i18n_flow/search.rb', line 10 def initialize( locale:, file:, line:, column:, value:, score: ) @locale = locale @file = file @line = line @column = column @value = value @score = score end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
6 7 8 |
# File 'lib/i18n_flow/search.rb', line 6 def column @column end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
4 5 6 |
# File 'lib/i18n_flow/search.rb', line 4 def file @file end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
5 6 7 |
# File 'lib/i18n_flow/search.rb', line 5 def line @line end |
#locale ⇒ Object (readonly)
Returns the value of attribute locale.
3 4 5 |
# File 'lib/i18n_flow/search.rb', line 3 def locale @locale end |
#score ⇒ Object (readonly)
Returns the value of attribute score.
8 9 10 |
# File 'lib/i18n_flow/search.rb', line 8 def score @score end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
7 8 9 |
# File 'lib/i18n_flow/search.rb', line 7 def value @value end |