Class: Sem4r::ReportField
- Inherits:
-
Object
- Object
- Sem4r::ReportField
- Includes:
- Sem4rSoap::SoapAttributes
- Defined in:
- lib/sem4r/report_definition/report_field.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(&block) ⇒ ReportField
constructor
A new instance of ReportField.
- #to_s ⇒ Object
Methods included from Sem4rSoap::SoapAttributes
#_from_element, #_to_s, #_to_xml, included
Constructor Details
#initialize(&block) ⇒ ReportField
Returns a new instance of ReportField.
43 44 45 46 47 |
# File 'lib/sem4r/report_definition/report_field.rb', line 43 def initialize(&block) if block_given? block.arity < 1 ? instance_eval(&block) : block.call(self) end end |
Class Method Details
.from_element(*args) ⇒ Object
49 50 51 |
# File 'lib/sem4r/report_definition/report_field.rb', line 49 def self.from_element(*args) _from_element(*args) end |
Instance Method Details
#to_s ⇒ Object
53 54 55 |
# File 'lib/sem4r/report_definition/report_field.rb', line 53 def to_s "#{@field_name} #{@field_type}" end |