Class: Cryptosphere::Tree::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/cryptosphere/blobs/tree.rb

Overview

Individual entries in a tree

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



16
17
18
# File 'lib/cryptosphere/blobs/tree.rb', line 16

def id
  @id
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



16
17
18
# File 'lib/cryptosphere/blobs/tree.rb', line 16

def key
  @key
end

#modeObject

Returns the value of attribute mode

Returns:

  • (Object)

    the current value of mode



16
17
18
# File 'lib/cryptosphere/blobs/tree.rb', line 16

def mode
  @mode
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



16
17
18
# File 'lib/cryptosphere/blobs/tree.rb', line 16

def name
  @name
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



16
17
18
# File 'lib/cryptosphere/blobs/tree.rb', line 16

def type
  @type
end

Instance Method Details

#to_sObject



17
18
19
# File 'lib/cryptosphere/blobs/tree.rb', line 17

def to_s
  "#{mode} #{type} #{id} #{key} #{name}"
end