module Fauxster
Constants
- VERSION
Public Class Methods
craft_prose(paragraphs = 1, args = {})
click to toggle source
# File lib/fauxster.rb, line 6 def self.craft_prose(paragraphs = 1, args = {}) # TODO: add error handling html = args.fetch(:html) { false } language = args.fetch(:language) { 'hipster-centric' } hipster_nonsense = HTTParty.get("http://hipsterjesus.com/api/?paras=#{paragraphs}&html=#{html}&type=#{language}") return hipster_nonsense['text'] end