Class: Fuck::King

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

Instance Method Summary collapse

Methods included from Salutations

#call, included

Constructor Details

#initialize(options = {}) ⇒ King

Returns a new instance of King.

Examples:

Fuck::King.new(name: "You", from: "Me").call
  => #<PayDirt::Result:0x91adffc @data= {
        "message"=> "Oh fuck off, just really fuck off you total dickface. Christ You, you are fucking thick.",
        "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/king.rb', line 14

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

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