Class: Fuck::Fascinating

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

Instance Method Summary collapse

Methods included from Salutations

#call, included

Constructor Details

#initialize(options = {}) ⇒ Fascinating

Returns a new instance of Fascinating.

Examples:

Fuck::Fascinating.new(from: "Me").call
  => <PayDirt::Result:0x9999eb4 @data= {
        "message"=>"Fascinating story, in what chapter do you shut the fuck up?",
        "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/fascinating.rb', line 14

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

  load_options(:resource, :from, options)
end