Class: Fuck::Flying

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

Instance Method Summary collapse

Methods included from Salutations

#call, included

Constructor Details

#initialize(options = {}) ⇒ Flying

Returns a new instance of Flying.

Examples:

Fuck::Flying.new(from: "Me").call
  => #<PayDirt::Result:0x99e132c @data= {
        "message"=>"I don't give a flying fuck.",
        "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/flying.rb', line 14

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

  load_options(:resource, :from, options)
end