Sha256: fd8644d91ce4efdcc98a5f766c0505cb1cda99fe813d328e69c53dea2d676b94

Contents?: true

Size: 241 Bytes

Versions: 1

Compression:

Stored size: 241 Bytes

Contents

require 'pixy/version'
require 'pixy/shorten'
require 'net/http'
require 'json'

module Pixy
  extend self

  def shorten!(key=nil, url='')
    raise ArgumentError, "API key is required" if key.nil?
    Pixy::Shorten.new(key, url)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pixy-0.0.1 lib/pixy.rb