Class: OnsOpenApi::Item
- Inherits:
-
Object
- Object
- OnsOpenApi::Item
- Includes:
- Morph
- Defined in:
- lib/ons_openapi/item.rb
Instance Method Summary collapse
Instance Method Details
#label ⇒ Object
5 6 7 |
# File 'lib/ons_openapi/item.rb', line 5 def label labels.labels.first.text end |
#title ⇒ Object
9 10 11 |
# File 'lib/ons_openapi/item.rb', line 9 def title [item_code, label].join(' ') end |