Class: Pennyworth::Presenters::Encoding

Inherits:
Object
  • Object
show all
Defined in:
lib/pennyworth/presenters/encoding.rb

Overview

Renders encoding into a compatible format for use in Alfred script filters.

Instance Method Summary collapse

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

#aliasesObject



15
# File 'lib/pennyworth/presenters/encoding.rb', line 15

def aliases = record.aliases

#idObject



11
# File 'lib/pennyworth/presenters/encoding.rb', line 11

def id = record.name

#labelObject



13
# File 'lib/pennyworth/presenters/encoding.rb', line 13

def label = record.name