class Konami::Fo
Public Class Methods
new(options = {})
click to toggle source
# File lib/konami/fo.rb, line 8 def initialize(options = {}) options = { konamio: Konamio::Sequence::Requisition, konamio_params: { prompt: "Enter the Konami code!", confirmation: false }, foaas: Foaas::FO, foaas_params: { name: "You", from: "Me", } }.merge(options) load_options(options) end
Public Instance Methods
execute!()
click to toggle source
# File lib/konami/fo.rb, line 25 def execute! @konamio.new(@konamio_params).execute! { @response = @foaas.new(@foaas_params).execute! puts "#{@response.data["message"]} #{@response.data["subtitle"]}" } return result(true, @response) end