Module: MetumAttr
- Included in:
- ScavengerHunt::Game
- Defined in:
- lib/scavenger_hunt/app/models/scavenger_hunt/concerns/metum_attr.rb
Instance Method Summary collapse
Instance Method Details
#metum_attr(resource, metum_name) ⇒ Object
3 4 5 |
# File 'lib/scavenger_hunt/app/models/scavenger_hunt/concerns/metum_attr.rb', line 3 def metum_attr(resource, metum_name) resource.representations.approved.with_metum_named(metum_name).first&.text end |