class Fountain::Stage
Attributes
raw_data[R]
Raw stage data
Public Class Methods
new(data)
click to toggle source
@param [Hash] data Raw stage data
# File lib/fountain/stage.rb, line 14 def initialize(data) @raw_data = Util.stringify_hash_keys data end
Public Instance Methods
id()
click to toggle source
Stage
ID
# File lib/fountain/stage.rb, line 19 def id raw_data['id'] end
inspect()
click to toggle source
# File lib/fountain/stage.rb, line 33 def inspect format( '#<%<class_name>s:0x%<object_id>p @id="%<id>s" @title="%<title>s">', class_name: self.class.name, object_id: object_id, id: id, title: title ) end
title()
click to toggle source
Title
# File lib/fountain/stage.rb, line 24 def title raw_data['title'] end
type()
click to toggle source
Type
# File lib/fountain/stage.rb, line 29 def type raw_data['type'] end