Class: Berkshelf::API::RemoteCookbook
- Inherits:
-
Struct
- Object
- Struct
- Berkshelf::API::RemoteCookbook
- Defined in:
- lib/berkshelf/api/remote_cookbook.rb
Instance Attribute Summary collapse
-
#location_path ⇒ Object
Returns the value of attribute location_path.
-
#location_type ⇒ Object
Returns the value of attribute location_type.
-
#name ⇒ Object
Returns the value of attribute name.
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
Instance Attribute Details
#location_path ⇒ Object
Returns the value of attribute location_path
2 3 4 |
# File 'lib/berkshelf/api/remote_cookbook.rb', line 2 def location_path @location_path end |
#location_type ⇒ Object
Returns the value of attribute location_type
2 3 4 |
# File 'lib/berkshelf/api/remote_cookbook.rb', line 2 def location_type @location_type end |
#name ⇒ Object
Returns the value of attribute name
2 3 4 |
# File 'lib/berkshelf/api/remote_cookbook.rb', line 2 def name @name end |
#priority ⇒ Object
Returns the value of attribute priority
2 3 4 |
# File 'lib/berkshelf/api/remote_cookbook.rb', line 2 def priority @priority end |
#version ⇒ Object
Returns the value of attribute version
2 3 4 |
# File 'lib/berkshelf/api/remote_cookbook.rb', line 2 def version @version end |
Instance Method Details
#eql?(other) ⇒ Boolean
7 8 9 |
# File 'lib/berkshelf/api/remote_cookbook.rb', line 7 def eql?(other) self.hash == other.hash end |
#hash ⇒ Object
3 4 5 |
# File 'lib/berkshelf/api/remote_cookbook.rb', line 3 def hash "#{name}|#{version}".hash end |