Class: Fuck::Donut

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

Instance Method Summary collapse

Methods included from Salutations

#call, included

Constructor Details

#initialize(options = {}) ⇒ Donut

Returns a new instance of Donut.

Examples:

Fuck::Donut.new(name: "You", from: "Me").call
  => #<PayDirt::Result:0x90f6870 @data= {
        "message"=>"You, go and take a flying fuck at a rolling donut.",
        "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/donut.rb', line 14

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

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