Class: Keyboard::OpenLink

Inherits:
BaseAction show all
Defined in:
lib/vk_cozy/dev/keyboard/action.rb

Instance Attribute Summary

Attributes inherited from BaseAction

#type

Instance Method Summary collapse

Methods inherited from BaseAction

#get_data

Constructor Details

#initialize(label, link, payload: nil) ⇒ OpenLink

Returns a new instance of OpenLink.



25
26
27
28
29
30
31
# File 'lib/vk_cozy/dev/keyboard/action.rb', line 25

def initialize(label, link, payload: nil)
  @type = 'open_link'

  @label = label
  @link = link
  @payload = payload
end