Class: Avmtrf1::Git::Reference

Inherits:
Object
  • Object
show all
Includes:
EacRubyUtils::SimpleCache
Defined in:
lib/avmtrf1/git/reference.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(git, fullname, revision) ⇒ Reference

Returns a new instance of Reference.


12
13
14
15
16
# File 'lib/avmtrf1/git/reference.rb', line 12

def initialize(git, fullname, revision)
  @git = git
  @fullname = fullname
  @revision = revision
end

Instance Attribute Details

#fullnameObject (readonly)

Returns the value of attribute fullname.


10
11
12
# File 'lib/avmtrf1/git/reference.rb', line 10

def fullname
  @fullname
end

#revisionObject (readonly)

Returns the value of attribute revision.


10
11
12
# File 'lib/avmtrf1/git/reference.rb', line 10

def revision
  @revision
end

Instance Method Details

#nameObject


22
23
24
# File 'lib/avmtrf1/git/reference.rb', line 22

def name
  parsed_fullname.name
end

#type_uncachedObject


18
19
20
# File 'lib/avmtrf1/git/reference.rb', line 18

def type_uncached
  parsed_fullname.type
end