Class: Vagrant::BoxMetadata::Provider
- Inherits:
-
Object
- Object
- Vagrant::BoxMetadata::Provider
- 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
-
#checksum ⇒ String
The checksum value for this box, if any.
-
#checksum_type ⇒ String
The type of checksum (if any) associated with this provider.
-
#name ⇒ String
The name of the provider.
-
#url ⇒ String
The URL of the box.
Instance Method Summary collapse
-
#initialize(raw) ⇒ Provider
constructor
A new instance of Provider.
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
#checksum ⇒ String
The checksum value for this box, if any.
142 143 144 |
# File 'lib/vagrant/box_metadata.rb', line 142 def checksum @checksum end |
#checksum_type ⇒ String
The type of checksum (if any) associated with this provider.
147 148 149 |
# File 'lib/vagrant/box_metadata.rb', line 147 def checksum_type @checksum_type end |
#name ⇒ String
The name of the provider.
132 133 134 |
# File 'lib/vagrant/box_metadata.rb', line 132 def name @name end |
#url ⇒ String
The URL of the box.
137 138 139 |
# File 'lib/vagrant/box_metadata.rb', line 137 def url @url end |