class Berkshelf::API::RemoteCookbook
Attributes
info[RW]
location_path[RW]
location_type[RW]
name[RW]
priority[RW]
version[RW]
Public Class Methods
new(name, version, location_type, location_path, priority, info = {})
click to toggle source
# File lib/berkshelf/api/remote_cookbook.rb, line 10 def initialize(name, version, location_type, location_path, priority, info = {}) @name = name @version = version @location_type = location_type @location_path = location_path @priority = priority @info = info end
Public Instance Methods
eql?(other)
click to toggle source
# File lib/berkshelf/api/remote_cookbook.rb, line 23 def eql?(other) self.hash == other.hash end
hash()
click to toggle source
# File lib/berkshelf/api/remote_cookbook.rb, line 19 def hash "#{name}|#{version}".hash end