Class: Plugins::VagrantPlugin
- Inherits:
-
Object
- Object
- Plugins::VagrantPlugin
- Defined in:
- lib/vagrant_commands/plugins.rb
Instance Attribute Summary collapse
-
#plugin_name ⇒ Object
Returns the value of attribute plugin_name.
-
#plugin_version ⇒ Object
Returns the value of attribute plugin_version.
-
#plugin_version_constraint ⇒ Object
Returns the value of attribute plugin_version_constraint.
Instance Method Summary collapse
-
#initialize(plugin_name, plugin_version, plugin_version_constraint) ⇒ VagrantPlugin
constructor
A new instance of VagrantPlugin.
- #to_s ⇒ Object
Constructor Details
#initialize(plugin_name, plugin_version, plugin_version_constraint) ⇒ VagrantPlugin
Returns a new instance of VagrantPlugin.
81 82 83 84 85 |
# File 'lib/vagrant_commands/plugins.rb', line 81 def initialize(plugin_name, plugin_version, plugin_version_constraint) @plugin_name = plugin_name @plugin_version = plugin_version @plugin_version_constraint = plugin_version_constraint end |
Instance Attribute Details
#plugin_name ⇒ Object
Returns the value of attribute plugin_name.
79 80 81 |
# File 'lib/vagrant_commands/plugins.rb', line 79 def plugin_name @plugin_name end |
#plugin_version ⇒ Object
Returns the value of attribute plugin_version.
79 80 81 |
# File 'lib/vagrant_commands/plugins.rb', line 79 def plugin_version @plugin_version end |
#plugin_version_constraint ⇒ Object
Returns the value of attribute plugin_version_constraint.
79 80 81 |
# File 'lib/vagrant_commands/plugins.rb', line 79 def plugin_version_constraint @plugin_version_constraint end |
Instance Method Details
#to_s ⇒ Object
87 88 89 |
# File 'lib/vagrant_commands/plugins.rb', line 87 def to_s @plugin_name + ", " + @plugin_version + ", " + @plugin_version_constraint end |