Exception: GoodGuide::Gibbon::MissingData

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/goodguide/gibbon.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, id, annotations) ⇒ MissingData

Returns a new instance of MissingData.



144
145
146
# File 'lib/goodguide/gibbon.rb', line 144

def initialize(type, id, annotations)
  @query_type, @id, @annotations = type, id, annotations
end

Instance Attribute Details

#annotationsObject (readonly)

Returns the value of attribute annotations.



143
144
145
# File 'lib/goodguide/gibbon.rb', line 143

def annotations
  @annotations
end

#idObject (readonly)

Returns the value of attribute id.



143
144
145
# File 'lib/goodguide/gibbon.rb', line 143

def id
  @id
end

#query_typeObject (readonly)

Returns the value of attribute query_type.



143
144
145
# File 'lib/goodguide/gibbon.rb', line 143

def query_type
  @query_type
end

Instance Method Details

#equals(other) ⇒ Object



148
149
150
151
152
153
154
# File 'lib/goodguide/gibbon.rb', line 148

def equals(other)
  [
    query_type == other.query_type,
    id == other.id,
    annotations == other.annotations
  ].all?
end