Class: WorkOS::PortalLinkResponse

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/admin_portal/portal_link_response.rb

Constant Summary collapse

HASH_ATTRS =
{
  link: :link
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ PortalLinkResponse

Returns a new instance of PortalLinkResponse.



13
14
15
16
# File 'lib/workos/admin_portal/portal_link_response.rb', line 13

def initialize(json)
  hash = self.class.normalize(json)
  @link = hash[:link]
end

Instance Attribute Details

Returns the value of attribute link.



11
12
13
# File 'lib/workos/admin_portal/portal_link_response.rb', line 11

def link
  @link
end