Sha256: d728efed4fa2d34f0f4eeea4fd45ed1d7fe8eb45348e6d1e4bea9541e4dcbf12
Contents?: true
Size: 680 Bytes
Versions: 23
Compression:
Stored size: 680 Bytes
Contents
module PortaText module Command module Api # The inspect endpoint. # https://github.com/PortaText/docs/wiki/REST-API#api_inspect # # Author:: Marcelo Gornstein (mailto:marcelog@portatext.com) # Copyright:: Copyright (c) 2015 PortaText # License:: Apache-2.0 class NumberInspect < Base def number(number) set :number, number end def csv(file) set :file, file end def endpoint(_method) number = @args[:number] @args.delete :number return "inspect/#{number}" unless number.nil? 'inspect' end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems