Class: InstanceMetadata

Inherits:
Object
  • Object
show all
Defined in:
app/models/instance_metadata.rb

Defined Under Namespace

Classes: Kas

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(version: Gitlab::VERSION, revision: Gitlab.revision) ⇒ InstanceMetadata

Returns a new instance of InstanceMetadata.


6
7
8
9
10
# File 'app/models/instance_metadata.rb', line 6

def initialize(version: Gitlab::VERSION, revision: Gitlab.revision)
  @version = version
  @revision = revision
  @kas = ::InstanceMetadata::Kas.new
end

Instance Attribute Details

#kasObject (readonly)

Returns the value of attribute kas.


4
5
6
# File 'app/models/instance_metadata.rb', line 4

def kas
  @kas
end

#revisionObject (readonly)

Returns the value of attribute revision.


4
5
6
# File 'app/models/instance_metadata.rb', line 4

def revision
  @revision
end

#versionObject (readonly)

Returns the value of attribute version.


4
5
6
# File 'app/models/instance_metadata.rb', line 4

def version
  @version
end