class Prismic::AlternateLanguage

A class for the alternate language versions of a document

The {Prismic.alternate_language} function is the recommended way to create an AlternateLanguage.

Attributes

id[RW]

@return [String]

lang[RW]

@return [String]

type[RW]

@return [String]

uid[RW]

@return [String]

Public Class Methods

new(json) click to toggle source
# File lib/prismic.rb, line 607
def initialize(json)
  @id = json['id']
  @uid = json['uid']
  @type = json['type']
  @lang = json['lang']
end