Class: Pennyworth::Presenters::Encoding
- Inherits:
-
Object
- Object
- Pennyworth::Presenters::Encoding
- Defined in:
- lib/pennyworth/presenters/encoding.rb
Overview
Shapes an encoding record for serialization.
Instance Method Summary collapse
- #aliases ⇒ Object
- #id ⇒ Object
-
#initialize(record) ⇒ Encoding
constructor
A new instance of Encoding.
- #label ⇒ Object
Constructor Details
#initialize(record) ⇒ Encoding
Returns a new instance of Encoding.
7 8 9 |
# File 'lib/pennyworth/presenters/encoding.rb', line 7 def initialize record @record = record end |
Instance Method Details
#aliases ⇒ Object
15 |
# File 'lib/pennyworth/presenters/encoding.rb', line 15 def aliases = record.aliases |
#id ⇒ Object
11 |
# File 'lib/pennyworth/presenters/encoding.rb', line 11 def id = record.name |
#label ⇒ Object
13 |
# File 'lib/pennyworth/presenters/encoding.rb', line 13 def label = record.name |