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.



399
400
401
# File 'lib/goodguide/gibbon.rb', line 399

def initialize(key)
  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



398
399
400
# File 'lib/goodguide/gibbon.rb', line 398

def key
  @key
end

Instance Method Details

#as_jsonObject



403
404
405
# File 'lib/goodguide/gibbon.rb', line 403

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