Class: Fiona7::AttributeWriters::Helpers::HtmlSerializer

Inherits:
Object
  • Object
show all
Defined in:
lib/fiona7/attribute_writers/helpers/html_serializer.rb

Instance Method Summary collapse

Constructor Details

#initialize(obj, klass) ⇒ HtmlSerializer

Returns a new instance of HtmlSerializer.



7
8
9
10
# File 'lib/fiona7/attribute_writers/helpers/html_serializer.rb', line 7

def initialize(obj, klass)
  self.obj   = obj
  self.klass = klass
end

Instance Method Details

#call(value) ⇒ Object



12
13
14
# File 'lib/fiona7/attribute_writers/helpers/html_serializer.rb', line 12

def call(value)
  converted_links = LinkConverter::ScrivitoToFiona.new(self.klass, value.to_s).convert
end