Class: Gemgate::Index

Inherits:
Object
  • Object
show all
Defined in:
lib/gemgate/index.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#latest_specs=(value) ⇒ Object

Sets the attribute latest_specs

Parameters:

  • value

    the value to set the attribute latest_specs to.



4
5
6
# File 'lib/gemgate/index.rb', line 4

def latest_specs=(value)
  @latest_specs = value
end

#prerelease_specs=(value) ⇒ Object

Sets the attribute prerelease_specs

Parameters:

  • value

    the value to set the attribute prerelease_specs to.



4
5
6
# File 'lib/gemgate/index.rb', line 4

def prerelease_specs=(value)
  @prerelease_specs = value
end

#quick_marshal_specs=(value) ⇒ Object

Sets the attribute quick_marshal_specs

Parameters:

  • value

    the value to set the attribute quick_marshal_specs to.



4
5
6
# File 'lib/gemgate/index.rb', line 4

def quick_marshal_specs=(value)
  @quick_marshal_specs = value
end

#specs=(value) ⇒ Object

Sets the attribute specs

Parameters:

  • value

    the value to set the attribute specs to.



4
5
6
# File 'lib/gemgate/index.rb', line 4

def specs=(value)
  @specs = value
end

#storageObject

Returns the value of attribute storage.



3
4
5
# File 'lib/gemgate/index.rb', line 3

def storage
  @storage
end

Instance Method Details

#add(gem) ⇒ Object



6
7
8
9
10
11
# File 'lib/gemgate/index.rb', line 6

def add(gem)
  specs.add(gem)
  latest_specs.add(gem)
  prerelease_specs.add(gem)
  quick_marshal_specs.add(gem)
end