Class: Apps::Adapters::Gmail::Markup::ViewAction

Inherits:
Base
  • Object
show all
Defined in:
lib/apps/adapters/gmail/markup/view_action.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize, #to_json, #type

Constructor Details

This class inherits a constructor from Apps::Adapters::Gmail::Markup::Base

Instance Attribute Details

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/apps/adapters/gmail/markup/view_action.rb', line 11

def name
  @name
end

#targetObject

Returns the value of attribute target.



11
12
13
# File 'lib/apps/adapters/gmail/markup/view_action.rb', line 11

def target
  @target
end

#viewedObject

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_jsonObject



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