class Kentico::Kontent::Delivery::Resolvers::ContentLink
Model for links from the JSON response
Attributes
code_name[RW]
id[RW]
type[RW]
url_slug[RW]
Public Class Methods
new(link)
click to toggle source
Constructor.
-
Args:
-
link (
JSON
) One link from an element's 'links' JSON node
-
# File lib/delivery/resolvers/content_link_resolver.rb, line 92 def initialize(link) self.id = link[0] self.code_name = link[1]['codename'] self.type = link[1]['type'] self.url_slug = link[1]['url_slug'] end