Class: NotionRb::Utils::Converter

Inherits:
Object
  • Object
show all
Defined in:
lib/notion_rb/utils/converter.rb

Instance Method Summary collapse

Constructor Details

#initializeConverter

Returns a new instance of Converter.



6
7
8
# File 'lib/notion_rb/utils/converter.rb', line 6

def initialize
  @position = 0
end

Instance Method Details

#convert(value) ⇒ Object



10
11
12
13
14
# File 'lib/notion_rb/utils/converter.rb', line 10

def convert(value)
  data = parse(value)
  @position += 1
  data
end