class Embulk::Guess::JiraGuess
Public Instance Methods
guess_text(config, sample_text)
click to toggle source
# File lib/embulk/guess/jira.rb, line 11 def guess_text(config, sample_text) {:columns => SchemaGuess.from_hash_records(JSON.parse(sample_text)).map do |c| { name: c.name, type: c.type, **(c.format ? {format: c.format} : {}) } end } end