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



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

def data
  @data
end

#oidObject

Returns the value of attribute oid.



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

def oid
  @oid
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



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

def type
  @type
end

Instance Method Details

#to_sObject



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

def to_s
  data
end