Class: Fuck::Shakespeare

Inherits:
Object
  • Object
show all
Includes:
Salutations
Defined in:
lib/fuck/shakespeare.rb

Instance Method Summary collapse

Methods included from Salutations

#call, included

Constructor Details

#initialize(options = {}) ⇒ Shakespeare

Returns a new instance of Shakespeare.

Examples:

Fuck::Shakespeare.new(name: "You", from: "Me").call
  => #<PayDirt::Result:0x913fc3c @data= {
        "message"=> "You, Thou clay-brained guts, thou knotty-pated fool,
                     thou whoreson obscene greasy tallow-catch!",
        "subtitle"=>"- Me"
      }, # @success=true>

Parameters:

  • options (Hash) (defaults to: {})

    options to send FOaaS

Options Hash (options):

  • :name (String)
  • :from (String)


15
16
17
18
19
20
21
# File 'lib/fuck/shakespeare.rb', line 15

def initialize(options = {})
  options = {
    resource: "shakespeare",
  }.merge(options)

  load_options(:resource, :name, :from, options)
end