Class: Basecamp::Types::ClientSide Deprecated

Inherits:
Object
  • Object
show all
Includes:
TypeHelpers
Defined in:
lib/basecamp/generated/types.rb

Overview

Deprecated.

This shape is deprecated since 2024-01: Use Client Visibility feature instead

ClientSide

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ ClientSide

Returns a new instance of ClientSide.



1061
1062
1063
1064
# File 'lib/basecamp/generated/types.rb', line 1061

def initialize(data = {})
  @app_url = data["app_url"]
  @url = data["url"]
end

Instance Attribute Details

#app_urlObject

Returns the value of attribute app_url.



1059
1060
1061
# File 'lib/basecamp/generated/types.rb', line 1059

def app_url
  @app_url
end

#urlObject

Returns the value of attribute url.



1059
1060
1061
# File 'lib/basecamp/generated/types.rb', line 1059

def url
  @url
end

Instance Method Details

#to_hObject



1066
1067
1068
1069
1070
1071
# File 'lib/basecamp/generated/types.rb', line 1066

def to_h
  {
    "app_url" => @app_url,
    "url" => @url,
  }.compact
end

#to_json(*args) ⇒ Object



1073
1074
1075
# File 'lib/basecamp/generated/types.rb', line 1073

def to_json(*args)
  to_h.to_json(*args)
end