Class: UDRS::Components::TText

Inherits:
Object
  • Object
show all
Defined in:
lib/udrs/components/t_text.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



4
5
6
# File 'lib/udrs/components/t_text.rb', line 4

def body
  @body
end

#titleObject (readonly)

Returns the value of attribute title.



4
5
6
# File 'lib/udrs/components/t_text.rb', line 4

def title
  @title
end