class Fountain::Transition

Fountain Transition

Attributes

raw_data[R]

Raw transition data

Public Class Methods

new(data) click to toggle source

@param [Hash] data Raw transition data

# File lib/fountain/transition.rb, line 14
def initialize(data)
  @raw_data = Util.stringify_hash_keys data
end

Public Instance Methods

created_at() click to toggle source

Created at

# File lib/fountain/transition.rb, line 24
def created_at
  Time.parse raw_data['created_at']
end
inspect() click to toggle source
# File lib/fountain/transition.rb, line 28
def inspect
  format(
    '#<%<class_name>s:0x%<object_id>p @stage_title="%<title>s">',
    class_name: self.class.name,
    object_id: object_id,
    title: stage_title
  )
end
stage_title() click to toggle source

Stage title

# File lib/fountain/transition.rb, line 19
def stage_title
  raw_data['stage_title']
end