class Fountain::Label

Fountain Label

Attributes

raw_data[R]

Raw label data

Public Class Methods

new(data) click to toggle source

@param [Hash] data Raw label data

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

Public Instance Methods

completed() click to toggle source

Completed

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

Label title

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