Class: NotionRb::Utils::Converter
- Inherits:
-
Object
- Object
- NotionRb::Utils::Converter
- Defined in:
- lib/notion_rb/utils/converter.rb
Instance Method Summary collapse
- #convert(value) ⇒ Object
-
#initialize ⇒ Converter
constructor
A new instance of Converter.
Constructor Details
#initialize ⇒ Converter
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 |