Class: Fuck::This

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

Instance Method Summary collapse

Methods included from Salutations

#call, included

Constructor Details

#initialize(options = {}) ⇒ This

Returns a new instance of This.

Examples:

Fuck::This.new(from: "Me").call
  => #<PayDirt::Result:0x8b2d650 @data= {
        "message"=>"Fuck this.",
        "subtitle"=>"- Me"
      }, @success=true>

Parameters:

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

    options to send FOaaS

Options Hash (options):

  • :from (String)


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

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

  load_options(:resource, :from, options)
end