Class: Fuck::Linus

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

Instance Method Summary collapse

Methods included from Salutations

#call, included

Constructor Details

#initialize(options = {}) ⇒ Linus

Returns a new instance of Linus.

Examples:

Fuck::Linus.new(name: "You", from: "Me").call
  => #<PayDirt::Result:0x916ccc8 @data= {
        "message"=> "You, there aren't enough swear-words in the English language,
                     so now I'll have to call you perkeleen vittupää just to
                     express my disgust and frustration with this crap.",
        "subtitle"=>"- Me"
      }, @success=true>

Parameters:

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

    options to send FOaaS

Options Hash (options):

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


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

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

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