Class: Vendor::VendorFile::Source

Inherits:
Object
  • Object
show all
Defined in:
lib/vendor/vendor_file/source.rb

Constant Summary collapse

MAPPING =
{ :vendorforge => "http://vendorkit.com", :vendorkit => "http://vendorkit.com" }

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ Source

Returns a new instance of Source.



10
11
12
13
14
15
16
# File 'lib/vendor/vendor_file/source.rb', line 10

def initialize(uri)
  if uri.kind_of?(Symbol)
    self.uri = MAPPING[uri]
  else
    self.uri = uri
  end
end

Instance Attribute Details

#uriObject

Returns the value of attribute uri.



8
9
10
# File 'lib/vendor/vendor_file/source.rb', line 8

def uri
  @uri
end