Class: Pack::Record

Inherits:
Struct
  • Object
show all
Defined in:
lib/pack.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



36
37
38
# File 'lib/pack.rb', line 36

def data
  @data
end

#oidObject

Returns the value of attribute oid.



37
38
39
# File 'lib/pack.rb', line 37

def oid
  @oid
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



36
37
38
# File 'lib/pack.rb', line 36

def type
  @type
end

Instance Method Details

#to_sObject



39
40
41
# File 'lib/pack.rb', line 39

def to_s
  data
end