Class: GoodGuide::Gibbon::Dependency::Local

Inherits:
GoodGuide::Gibbon::Dependency show all
Defined in:
lib/goodguide/gibbon.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ Local

Returns a new instance of Local.



437
438
439
# File 'lib/goodguide/gibbon.rb', line 437

def initialize(key)
  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



436
437
438
# File 'lib/goodguide/gibbon.rb', line 436

def key
  @key
end

Instance Method Details

#as_jsonObject



441
442
443
# File 'lib/goodguide/gibbon.rb', line 441

def as_json
  { '_tag' => 'local', 'key' => key }
end