Class: Fuck::You

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

Instance Method Summary collapse

Methods included from Salutations

#call, included

Constructor Details

#initialize(options = {}) ⇒ You

Returns a new instance of You.

Examples:

Fuck::You.new(name: "You", from: "Me").call
  => #<PayDirt::Result:0x8aa2dfc @data= {
        "message"=>"Fuck you, You.",
        "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/you.rb', line 14

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

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