Class: Timechunker::Chunksize

Inherits:
Object
  • Object
show all
Defined in:
lib/timechunker/chunksize.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(size, type) ⇒ Chunksize

Returns a new instance of Chunksize.



6
7
8
9
# File 'lib/timechunker/chunksize.rb', line 6

def initialize(size, type)
  @size = size
  @type = type
end

Instance Attribute Details

#sizeObject (readonly)

Returns the value of attribute size.



4
5
6
# File 'lib/timechunker/chunksize.rb', line 4

def size
  @size
end

#typeObject (readonly)

Returns the value of attribute type.



4
5
6
# File 'lib/timechunker/chunksize.rb', line 4

def type
  @type
end