Class: Papago::Actions::Run
- Inherits:
-
Object
- Object
- Papago::Actions::Run
- Defined in:
- lib/papago/actions/run.rb
Instance Attribute Summary collapse
-
#printer ⇒ Object
readonly
Returns the value of attribute printer.
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Instance Method Summary collapse
-
#initialize ⇒ Run
constructor
A new instance of Run.
Constructor Details
#initialize ⇒ Run
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
#printer ⇒ Object (readonly)
Returns the value of attribute printer.
4 5 6 |
# File 'lib/papago/actions/run.rb', line 4 def printer @printer end |
#service ⇒ Object (readonly)
Returns the value of attribute service.
5 6 7 |
# File 'lib/papago/actions/run.rb', line 5 def service @service end |