Class: SameSame::DataPoint

Inherits:
Struct
  • Object
show all
Defined in:
lib/same_same/data_point.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



2
3
4
# File 'lib/same_same/data_point.rb', line 2

def data
  @data
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



2
3
4
# File 'lib/same_same/data_point.rb', line 2

def id
  @id
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/same_same/data_point.rb', line 3

def empty?
  data.empty?
end

#sizeObject



7
8
9
# File 'lib/same_same/data_point.rb', line 7

def size
  data.size
end