Module: Gem::Checkout::Spec::CommonMetadata

Included in:
Local::Metadata, Remote::Metadata
Defined in:
lib/gem-checkout/spec.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#alternativeObject (readonly)

Returns the value of attribute alternative.



15
16
17
# File 'lib/gem-checkout/spec.rb', line 15

def alternative
  @alternative
end

Instance Method Details

#homepageObject



21
22
23
# File 'lib/gem-checkout/spec.rb', line 21

def homepage
  read(:homepage_uri)
end

#initialize(data, alternative = nil) ⇒ Object



16
17
18
19
# File 'lib/gem-checkout/spec.rb', line 16

def initialize(data, alternative=nil)
  @alternative = alternative
  @data = OpenStruct.new(data)
end