Class: Lara::Models::GlossaryImport

Inherits:
Base
  • Object
show all
Defined in:
lib/lara/models/glossaries.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

parse_time

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

#channelObject (readonly)

Returns the value of attribute channel.



24
25
26
# File 'lib/lara/models/glossaries.rb', line 24

def channel
  @channel
end

#idObject (readonly)

Returns the value of attribute id.



24
25
26
# File 'lib/lara/models/glossaries.rb', line 24

def id
  @id
end

#progressObject (readonly)

Returns the value of attribute progress.



24
25
26
# File 'lib/lara/models/glossaries.rb', line 24

def progress
  @progress
end

#range_beginObject (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_endObject (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

#sizeObject (readonly)

Returns the value of attribute size.



24
25
26
# File 'lib/lara/models/glossaries.rb', line 24

def size
  @size
end