Class: UDRS::Components::TText
- Inherits:
-
Object
- Object
- UDRS::Components::TText
- Defined in:
- lib/udrs/components/t_text.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title, body) ⇒ TText
constructor
A new instance of TText.
Constructor Details
#initialize(title, body) ⇒ TText
Returns a new instance of TText.
6 7 8 9 |
# File 'lib/udrs/components/t_text.rb', line 6 def initialize(title, body) @title = title.to_s @body = body.to_s end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
4 5 6 |
# File 'lib/udrs/components/t_text.rb', line 4 def body @body end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/udrs/components/t_text.rb', line 4 def title @title end |