Class: Papago::Actions::Run

Inherits:
Object
  • Object
show all
Defined in:
lib/papago/actions/run.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRun

Returns a new instance of Run.



7
8
9
10
# File 'lib/papago/actions/run.rb', line 7

def initialize
  @printer = Papago::Printer.new
  @service = create_service(Papago.service_name || 'youdao')
end

Instance Attribute Details

#printerObject (readonly)

Returns the value of attribute printer.



4
5
6
# File 'lib/papago/actions/run.rb', line 4

def printer
  @printer
end

#serviceObject (readonly)

Returns the value of attribute service.



5
6
7
# File 'lib/papago/actions/run.rb', line 5

def service
  @service
end