Class: Apps::Adapters::Gmail::Markup::ViewAction
- Defined in:
- lib/apps/adapters/gmail/markup/view_action.rb
Overview
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#target ⇒ Object
Returns the value of attribute target.
-
#viewed ⇒ Object
Returns the value of attribute viewed.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Apps::Adapters::Gmail::Markup::Base
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/apps/adapters/gmail/markup/view_action.rb', line 11 def name @name end |
#target ⇒ Object
Returns the value of attribute target.
11 12 13 |
# File 'lib/apps/adapters/gmail/markup/view_action.rb', line 11 def target @target end |
#viewed ⇒ Object
Returns the value of attribute viewed.
11 12 13 |
# File 'lib/apps/adapters/gmail/markup/view_action.rb', line 11 def viewed @viewed end |
Instance Method Details
#as_json ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/apps/adapters/gmail/markup/view_action.rb', line 13 def as_json prune super.merge( "name" => name, "target" => target, "viewed" => viewed&.as_json # Thing ) end |