Class: WikibaseRepresentable::Model::SnakHash
- Inherits:
-
Hash
- Object
- Hash
- WikibaseRepresentable::Model::SnakHash
- Defined in:
- lib/wikibase_representable/model/snak_hash.rb
Overview
Hash of Snak lists keyed by property ID
Instance Method Summary collapse
Instance Method Details
#snaks_by_property_id(property_id) ⇒ Object
7 8 9 |
# File 'lib/wikibase_representable/model/snak_hash.rb', line 7 def snaks_by_property_id(property_id) fetch(property_id, nil) end |
#snaks_by_property_id?(property_id) ⇒ Boolean
11 12 13 |
# File 'lib/wikibase_representable/model/snak_hash.rb', line 11 def snaks_by_property_id?(property_id) key?(property_id) end |