Class: Fountain::Label
- Inherits:
-
Object
- Object
- Fountain::Label
- Defined in:
- lib/fountain/label.rb
Overview
Fountain Label
Instance Attribute Summary collapse
-
#raw_data ⇒ Object
readonly
Raw label data.
Instance Method Summary collapse
-
#completed ⇒ Object
Completed.
-
#initialize(data) ⇒ Label
constructor
A new instance of Label.
- #inspect ⇒ Object
-
#title ⇒ Object
Label title.
Constructor Details
#initialize(data) ⇒ Label
Returns a new instance of Label.
14 15 16 |
# File 'lib/fountain/label.rb', line 14 def initialize(data) @raw_data = Util.stringify_hash_keys data end |
Instance Attribute Details
#raw_data ⇒ Object (readonly)
Raw label data
9 10 11 |
# File 'lib/fountain/label.rb', line 9 def raw_data @raw_data end |
Instance Method Details
#completed ⇒ Object
Completed
24 25 26 |
# File 'lib/fountain/label.rb', line 24 def completed raw_data['completed'] end |
#inspect ⇒ Object
28 29 30 31 32 33 34 35 |
# 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 ⇒ Object
Label title
19 20 21 |
# File 'lib/fountain/label.rb', line 19 def title raw_data['title'] end |