class Prismic::Variation
Attributes
id[R]
@return [String]
label[R]
@return [String]
ref[R]
@return [String]
Public Class Methods
new(id, ref, label)
click to toggle source
# File lib/prismic/experiments.rb, line 87 def initialize(id, ref, label) @id = id @ref = ref @label = label end
parse(data)
click to toggle source
@return [Variation]
# File lib/prismic/experiments.rb, line 94 def self.parse(data) new(data['id'], data['ref'], data['label']) end