Class: UploadPhotoAction

Inherits:
CameraAction show all
Defined in:
lib/ruby-macrodroid/actions.rb

Overview

Category: Camera/Photo

Instance Attribute Summary

Attributes inherited from Action

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Action

#invoke

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ UploadPhotoAction

Returns a new instance of UploadPhotoAction.



228
229
230
231
232
233
234
235
236
237
# File 'lib/ruby-macrodroid/actions.rb', line 228

def initialize(h={})

  options = {
    option: 'Via Intent',
    use_smtp_email: false
  }

  super(options.merge h)

end

Instance Method Details

#to_s(colour: false) ⇒ Object Also known as: to_summary



239
240
241
# File 'lib/ruby-macrodroid/actions.rb', line 239

def to_s(colour: false)
  'UploadPhotoAction ' + @h.inspect
end