Class: Fuck::Chainsaw

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

Instance Method Summary collapse

Methods included from Salutations

#call, included

Constructor Details

#initialize(options = {}) ⇒ Chainsaw

Returns a new instance of Chainsaw.

Examples:

Fuck::Chainsaw.new(name: "You", from: "Me").call
  => #<PayDirt::Result:0x92734f0 @data={
        "message"=> "Fuck me gently with a chainsaw, You. Do I look like Mother Teresa?",
        "subtitle"=>"- Me"
      }, @success=true>

Parameters:

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

    options to send FOaaS

Options Hash (options):

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


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

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

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