class Prismic::Ref
Represent a prismic.io reference, a fix point in time.
The references must be provided when accessing to any prismic.io resource (except /api) and allow to assert that the URL you use will always returns the same results.
Attributes
id[RW]
Returns the value of attribute id.
@return [String]
is_master[RW]
Returns the value of attribute is_master.
@return [Boolean]
label[RW]
Returns the value of attribute label.
@return [String]
master?[RW]
Returns the value of attribute is_master.
@return [Boolean]
ref[RW]
Returns the value of attribute ref.
@return [String]
scheduled_at[RW]
Returns the value of attribute scheduled_at.
@return [Time]
Public Class Methods
new(id, ref, label, is_master = false, scheduled_at = nil)
click to toggle source
# File lib/prismic.rb, line 546 def initialize(id, ref, label, is_master = false, scheduled_at = nil) @id = id @ref = ref @label = label @is_master = is_master @scheduled_at = scheduled_at end