Class: GoodGuide::Gibbon::Dependency::Missing

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#annotationsObject (readonly)

Returns the value of attribute annotations.



360
361
362
# File 'lib/goodguide/gibbon.rb', line 360

def annotations
  @annotations
end

#idObject (readonly)

Returns the value of attribute id.



360
361
362
# File 'lib/goodguide/gibbon.rb', line 360

def id
  @id
end

#query_typeObject (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_jsonObject



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