Class: Fuck::Thing

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

Instance Method Summary collapse

Methods included from Salutations

#call, included

Constructor Details

#initialize(options = {}) ⇒ Thing

Returns a new instance of Thing.

Examples:

Fuck::Thing.new(thing: "Cassowaries", from: "Me").call
  => #<PayDirt::Result:0x92db334 @data= {
        "message"=>"Fuck Anything.",
        "subtitle"=>"- Me"
      }, @success=true>

Parameters:

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

    options to send FOaaS

Options Hash (options):

  • :thing (String)
  • :from (String)


14
15
16
17
18
19
20
# File 'lib/fuck/thing.rb', line 14

def initialize(options = {})
  options = {
    resource: options[:thing],
  }.merge(options)

  load_options(:thing, :from, options)
end