Class: Vagrant::BoxMetadata::Remote::Version::Provider

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#checksumObject

Returns the value of attribute checksum.



82
83
84
# File 'lib/vagrant/box_metadata/remote.rb', line 82

def checksum
  @checksum
end

#checksum_typeObject

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

#nameObject

Returns the value of attribute name.



80
81
82
# File 'lib/vagrant/box_metadata/remote.rb', line 80

def name
  @name
end

#urlObject

Returns the value of attribute url.



81
82
83
# File 'lib/vagrant/box_metadata/remote.rb', line 81

def url
  @url
end