Class: GoodGuide::Gibbon::Dependency::Local
- Inherits:
-
GoodGuide::Gibbon::Dependency
- Object
- GoodGuide::Gibbon::Dependency
- GoodGuide::Gibbon::Dependency::Local
- Defined in:
- lib/goodguide/gibbon.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(key) ⇒ Local
constructor
A new instance of Local.
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
#key ⇒ Object (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_json ⇒ Object
403 404 405 |
# File 'lib/goodguide/gibbon.rb', line 403 def as_json { '_tag' => 'local', 'key' => key } end |