Class: Apps::Adapters::Gmail::Markup::Action

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

Direct Known Subclasses

ConfirmAction, RsvpAction, SaveAction

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

#handler_urlObject

Returns the value of attribute handler_url.



9
10
11
# File 'lib/apps/adapters/gmail/markup/action.rb', line 9

def handler_url
  @handler_url
end

Instance Method Details

#as_jsonObject



11
12
13
14
15
16
17
18
# File 'lib/apps/adapters/gmail/markup/action.rb', line 11

def as_json
  prune super.merge(
    "handler" => {
      "@type" => "HttpActionHandler",
      "url" => handler_url
    }
  )
end