Class: OpenWebPageAction
- Inherits:
-
ApplicationAction
- Object
- MacroObject
- Action
- ApplicationAction
- OpenWebPageAction
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Applications
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ OpenWebPageAction
constructor
A new instance of OpenWebPageAction.
- #to_s(colour: false) ⇒ Object
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ OpenWebPageAction
Returns a new instance of OpenWebPageAction.
2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 |
# File 'lib/ruby-macrodroid.rb', line 2904 def initialize(h={}) h[:url_to_open] = h[:url] if h[:url] = { variable_to_save_response: {:m_stringValue=>"", :m_name=>"", :m_decimalValue=>0.0, :isLocal=>true, :m_booleanValue=>false, :excludeFromLog=>false, :m_intValue=>0, :m_type=>2}, url_to_open: '', http_get: true, disable_url_encode: false, block_next_action: false } super(.merge filter(,h)) end |
Instance Method Details
#to_s(colour: false) ⇒ Object
2920 2921 2922 |
# File 'lib/ruby-macrodroid.rb', line 2920 def to_s(colour: false) "HTTP GET\n url: " + @h[:url_to_open] end |