Class: I18nFlow::Search::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/i18n_flow/search.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#columnObject (readonly)

Returns the value of attribute column.



6
7
8
# File 'lib/i18n_flow/search.rb', line 6

def column
  @column
end

#fileObject (readonly)

Returns the value of attribute file.



4
5
6
# File 'lib/i18n_flow/search.rb', line 4

def file
  @file
end

#lineObject (readonly)

Returns the value of attribute line.



5
6
7
# File 'lib/i18n_flow/search.rb', line 5

def line
  @line
end

#localeObject (readonly)

Returns the value of attribute locale.



3
4
5
# File 'lib/i18n_flow/search.rb', line 3

def locale
  @locale
end

#scoreObject (readonly)

Returns the value of attribute score.



8
9
10
# File 'lib/i18n_flow/search.rb', line 8

def score
  @score
end

#valueObject (readonly)

Returns the value of attribute value.



7
8
9
# File 'lib/i18n_flow/search.rb', line 7

def value
  @value
end