Class: Lara::Models::MemoryImport
- Defined in:
- lib/lara/models/memories.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) ⇒ MemoryImport
constructor
A new instance of MemoryImport.
Methods inherited from Base
Constructor Details
#initialize(id:, channel:, size:, progress:, range_begin: nil, range_end: nil, **kwargs) ⇒ MemoryImport
Returns a new instance of MemoryImport.
31 32 33 34 35 36 37 38 39 |
# File 'lib/lara/models/memories.rb', line 31 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.
29 30 31 |
# File 'lib/lara/models/memories.rb', line 29 def channel @channel end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
29 30 31 |
# File 'lib/lara/models/memories.rb', line 29 def id @id end |
#progress ⇒ Object (readonly)
Returns the value of attribute progress.
29 30 31 |
# File 'lib/lara/models/memories.rb', line 29 def progress @progress end |
#range_begin ⇒ Object (readonly)
Returns the value of attribute range_begin.
29 30 31 |
# File 'lib/lara/models/memories.rb', line 29 def range_begin @range_begin end |
#range_end ⇒ Object (readonly)
Returns the value of attribute range_end.
29 30 31 |
# File 'lib/lara/models/memories.rb', line 29 def range_end @range_end end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
29 30 31 |
# File 'lib/lara/models/memories.rb', line 29 def size @size end |