Class: AblyUi::Core::SignOutLink

Inherits:
ViewComponent::Base
  • Object
show all
Includes:
Util
Defined in:
lib/ably_ui/core/sign_out_link/sign_out_link.rb

Constant Summary

Constants included from Util

Util::DEFAULT_URL_BASE

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util

#abs_url, #append_random_postfix

Constructor Details

#initialize(session_data: {}, classes: [], url_base:) ⇒ SignOutLink

Returns a new instance of SignOutLink.



10
11
12
13
14
# File 'lib/ably_ui/core/sign_out_link/sign_out_link.rb', line 10

def initialize(session_data: {}, classes: [], url_base:)
  @session_data = session_data
  @classes = classes
  @url_base = url_base
end

Instance Attribute Details

#url_baseObject (readonly)

Returns the value of attribute url_base.



8
9
10
# File 'lib/ably_ui/core/sign_out_link/sign_out_link.rb', line 8

def url_base
  @url_base
end