Module: TestBench::Session::Controls::Events::Detailed

Defined in:
lib/test_bench/session/controls/events/detailed.rb

Defined Under Namespace

Modules: NoDisposition, Other

Class Method Summary collapse

Class Method Details

.dispositionObject



29
30
31
# File 'lib/test_bench/session/controls/events/detailed.rb', line 29

def self.disposition
  CommentDisposition.example
end

.example(text: nil, disposition: nil) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/test_bench/session/controls/events/detailed.rb', line 6

def self.example(text: nil, disposition: nil)
  text ||= self.text

  if disposition == :none
    disposition = nil
  else
    disposition ||= self.disposition
  end

  detailed = Session::Events::Detailed.new

  detailed.text = text
  detailed.disposition = disposition

  detailed. = Metadata.example

  detailed
end

.other_exampleObject



33
34
35
# File 'lib/test_bench/session/controls/events/detailed.rb', line 33

def self.other_example
  Other.example
end

.textObject



25
26
27
# File 'lib/test_bench/session/controls/events/detailed.rb', line 25

def self.text
  Text::Detail.example
end