Class: Vagrant::BoxMetadata::Provider

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant/box_metadata.rb

Overview

Provider represents a single provider-specific box available for a version for a box.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw) ⇒ Provider

Returns a new instance of Provider.



149
150
151
152
153
154
# File 'lib/vagrant/box_metadata.rb', line 149

def initialize(raw)
  @name = raw["name"]
  @url  = raw["url"]
  @checksum = raw["checksum"]
  @checksum_type = raw["checksum_type"]
end

Instance Attribute Details

#checksumString

The checksum value for this box, if any.

Returns:

  • (String)


142
143
144
# File 'lib/vagrant/box_metadata.rb', line 142

def checksum
  @checksum
end

#checksum_typeString

The type of checksum (if any) associated with this provider.

Returns:

  • (String)


147
148
149
# File 'lib/vagrant/box_metadata.rb', line 147

def checksum_type
  @checksum_type
end

#nameString

The name of the provider.

Returns:

  • (String)


132
133
134
# File 'lib/vagrant/box_metadata.rb', line 132

def name
  @name
end

#urlString

The URL of the box.

Returns:

  • (String)


137
138
139
# File 'lib/vagrant/box_metadata.rb', line 137

def url
  @url
end