class Hiptest::Nodes::Parameter

Public Class Methods

new(name, default = nil) click to toggle source
Calls superclass method
# File lib/hiptest-publisher/nodes.rb, line 271
def initialize(name, default = nil)
  super()
  @children = {name: name, default: default}
end

Public Instance Methods

datatable?() click to toggle source
# File lib/hiptest-publisher/nodes.rb, line 288
def datatable?
  @children[:name] == "__datatable"
end
free_text?() click to toggle source
# File lib/hiptest-publisher/nodes.rb, line 284
def free_text?
  @children[:name] == "__free_text"
end
type() click to toggle source
# File lib/hiptest-publisher/nodes.rb, line 276
def type
  if @children[:type].nil?
    'String'
  else
    @children[:type].to_s
  end
end