Class: Apps::Adapters::Gmail::Markup::TrackAction

Inherits:
Base
  • Object
show all
Defined in:
lib/apps/adapters/gmail/markup/track_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

#delivery_methodObject

Returns the value of attribute delivery_method.



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

def delivery_method
  @delivery_method
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#targetObject

Returns the value of attribute target.



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

def target
  @target
end

Instance Method Details

#as_jsonObject



13
14
15
16
17
18
19
# File 'lib/apps/adapters/gmail/markup/track_action.rb', line 13

def as_json
  prune super.merge(
    "name" => name,
    "target" => target,
    "deliveryMethod" => delivery_method&.as_json # DeliveryMethod
  )
end