Class: Berkshelf::API::RemoteCookbook

Inherits:
Struct
  • Object
show all
Defined in:
lib/berkshelf/api/remote_cookbook.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#location_pathObject

Returns the value of attribute location_path

Returns:

  • (Object)

    the current value of location_path



2
3
4
# File 'lib/berkshelf/api/remote_cookbook.rb', line 2

def location_path
  @location_path
end

#location_typeObject

Returns the value of attribute location_type

Returns:

  • (Object)

    the current value of location_type



2
3
4
# File 'lib/berkshelf/api/remote_cookbook.rb', line 2

def location_type
  @location_type
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



2
3
4
# File 'lib/berkshelf/api/remote_cookbook.rb', line 2

def name
  @name
end

#priorityObject

Returns the value of attribute priority

Returns:

  • (Object)

    the current value of priority



2
3
4
# File 'lib/berkshelf/api/remote_cookbook.rb', line 2

def priority
  @priority
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



2
3
4
# File 'lib/berkshelf/api/remote_cookbook.rb', line 2

def version
  @version
end

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/berkshelf/api/remote_cookbook.rb', line 7

def eql?(other)
  self.hash == other.hash
end

#hashObject



3
4
5
# File 'lib/berkshelf/api/remote_cookbook.rb', line 3

def hash
  "#{name}|#{version}".hash
end