Class: Vagrant::BoxMetadata::Remote::Version::Provider
- Inherits:
-
Object
- Object
- Vagrant::BoxMetadata::Remote::Version::Provider
- Defined in:
- lib/vagrant/box_metadata/remote.rb
Instance Attribute Summary collapse
-
#checksum ⇒ Object
Returns the value of attribute checksum.
-
#checksum_type ⇒ Object
Returns the value of attribute checksum_type.
-
#name ⇒ Object
Returns the value of attribute name.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(raw, client: nil) ⇒ Provider
constructor
A new instance of Provider.
Constructor Details
#initialize(raw, client: nil) ⇒ Provider
Returns a new instance of Provider.
85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/vagrant/box_metadata/remote.rb', line 85 def initialize(raw, client: nil) @name = raw[:name] @url = raw[:url] @checksum = raw[:checksum] @checksum_type = raw[:checksum_type] if client.nil? raise ArgumentError, "Remote client is required for `#{self.class.name}'" end @client = client end |
Instance Attribute Details
#checksum ⇒ Object
Returns the value of attribute checksum.
82 83 84 |
# File 'lib/vagrant/box_metadata/remote.rb', line 82 def checksum @checksum end |
#checksum_type ⇒ Object
Returns the value of attribute checksum_type.
83 84 85 |
# File 'lib/vagrant/box_metadata/remote.rb', line 83 def checksum_type @checksum_type end |
#name ⇒ Object
Returns the value of attribute name.
80 81 82 |
# File 'lib/vagrant/box_metadata/remote.rb', line 80 def name @name end |
#url ⇒ Object
Returns the value of attribute url.
81 82 83 |
# File 'lib/vagrant/box_metadata/remote.rb', line 81 def url @url end |