Class: Lara::Models::GlossaryImport
- Defined in:
- lib/lara/models/glossaries.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#progress ⇒ Object
readonly
Returns the value of attribute progress.
-
#range_begin ⇒ Object
readonly
Returns the value of attribute range_begin.
-
#range_end ⇒ Object
readonly
Returns the value of attribute range_end.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(id:, channel:, size:, progress:, range_begin: nil, range_end: nil, **kwargs) ⇒ GlossaryImport
constructor
A new instance of GlossaryImport.
Methods inherited from Base
Constructor Details
#initialize(id:, channel:, size:, progress:, range_begin: nil, range_end: nil, **kwargs) ⇒ GlossaryImport
Returns a new instance of GlossaryImport.
26 27 28 29 30 31 32 33 34 |
# File 'lib/lara/models/glossaries.rb', line 26 def initialize(id:, channel:, size:, progress:, range_begin: nil, range_end: nil, **kwargs) super() @id = id @range_begin = range_begin.nil? ? (kwargs[:begin] || kwargs["begin"]) : range_begin @range_end = range_end.nil? ? (kwargs[:end] || kwargs["end"]) : range_end @channel = channel @size = size @progress = progress end |
Instance Attribute Details
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
24 25 26 |
# File 'lib/lara/models/glossaries.rb', line 24 def channel @channel end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
24 25 26 |
# File 'lib/lara/models/glossaries.rb', line 24 def id @id end |
#progress ⇒ Object (readonly)
Returns the value of attribute progress.
24 25 26 |
# File 'lib/lara/models/glossaries.rb', line 24 def progress @progress end |
#range_begin ⇒ Object (readonly)
Returns the value of attribute range_begin.
24 25 26 |
# File 'lib/lara/models/glossaries.rb', line 24 def range_begin @range_begin end |
#range_end ⇒ Object (readonly)
Returns the value of attribute range_end.
24 25 26 |
# File 'lib/lara/models/glossaries.rb', line 24 def range_end @range_end end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
24 25 26 |
# File 'lib/lara/models/glossaries.rb', line 24 def size @size end |