Class: Canopus::Git::State::Snapshot

Inherits:
Data
  • Object
show all
Defined in:
lib/canopus/git/state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#branch ⇒ Object (readonly)

Returns the value of attribute branch

Returns:

  • (Object) —

    the current value of branch



7
8
9
# File 'lib/canopus/git/state.rb', line 7

def branch
  @branch
end

#entries ⇒ Object (readonly)

Returns the value of attribute entries

Returns:

  • (Object) —

    the current value of entries



7
8
9
# File 'lib/canopus/git/state.rb', line 7

def entries
  @entries
end

#head ⇒ Object (readonly)

Returns the value of attribute head

Returns:

  • (Object) —

    the current value of head



7
8
9
# File 'lib/canopus/git/state.rb', line 7

def head
  @head
end

#index_stamp ⇒ Object (readonly)

Returns the value of attribute index_stamp

Returns:

  • (Object) —

    the current value of index_stamp



7
8
9
# File 'lib/canopus/git/state.rb', line 7

def index_stamp
  @index_stamp
end

Instance Method Details

#identity ⇒ Object



8
# File 'lib/canopus/git/state.rb', line 8

def identity = [head, branch, index_stamp].freeze