Module: PandaGo

Defined in:
lib/pandago.rb,
lib/pandago/errors.rb,
lib/pandago/version.rb,
lib/pandago/converter.rb,
lib/pandago/configuration.rb,
lib/pandago/content_types.rb

Defined Under Namespace

Modules: ContentTypes Classes: Configuration, ContentTypeNotSupportedError, Converter, Error, RequestError, TimeoutError, UrlNotSetError

Constant Summary collapse

VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.configurationObject



12
13
14
# File 'lib/pandago.rb', line 12

def configuration
  @configuration ||= self::Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



8
9
10
# File 'lib/pandago.rb', line 8

def configure
  yield configuration if block_given?
end

.convert(file, from:, to:) ⇒ Object



16
17
18
# File 'lib/pandago.rb', line 16

def convert(file, from:, to:)
  self::Converter.new(file, from, to, configuration).convert
end