Class: GoodGuide::Gibbon::Dependency::Missing
- Inherits:
-
GoodGuide::Gibbon::Dependency
- Object
- GoodGuide::Gibbon::Dependency
- GoodGuide::Gibbon::Dependency::Missing
- Defined in:
- lib/goodguide/gibbon.rb
Instance Attribute Summary collapse
-
#annotations ⇒ Object
readonly
Returns the value of attribute annotations.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#query_type ⇒ Object
readonly
Returns the value of attribute query_type.
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(query_type, id, annotations) ⇒ Missing
constructor
A new instance of Missing.
Constructor Details
#initialize(query_type, id, annotations) ⇒ Missing
Returns a new instance of Missing.
361 362 363 |
# File 'lib/goodguide/gibbon.rb', line 361 def initialize(query_type, id, annotations) @query_type, @id, @annotations = query_type, id, annotations end |
Instance Attribute Details
#annotations ⇒ Object (readonly)
Returns the value of attribute annotations.
360 361 362 |
# File 'lib/goodguide/gibbon.rb', line 360 def annotations @annotations end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
360 361 362 |
# File 'lib/goodguide/gibbon.rb', line 360 def id @id end |
#query_type ⇒ Object (readonly)
Returns the value of attribute query_type.
360 361 362 |
# File 'lib/goodguide/gibbon.rb', line 360 def query_type @query_type end |
Instance Method Details
#as_json ⇒ Object
365 366 367 368 369 370 371 372 |
# File 'lib/goodguide/gibbon.rb', line 365 def as_json { '_tag' => 'missing', 'query_type' => query_type, 'id' => id, 'annotations' => annotations } end |