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 included from ObjectX

#action_to_object, #object_create, #varify

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ UploadPhotoAction

Returns a new instance of UploadPhotoAction.



265
266
267
268
269
270
271
272
273
274
# File 'lib/ruby-macrodroid/actions.rb', line 265

def initialize(h={})

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

  super(options.merge h)

end

Instance Method Details

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



276
277
278
# File 'lib/ruby-macrodroid/actions.rb', line 276

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