Class: Ray::Payloads::BoolPayload

Inherits:
Payload
  • Object
show all
Defined in:
lib/ray/payloads/bool_payload.rb

Instance Method Summary collapse

Methods inherited from Payload

#get_origin, #to_hash

Constructor Details

#initialize(bool) ⇒ BoolPayload

Returns a new instance of BoolPayload.



5
6
7
# File 'lib/ray/payloads/bool_payload.rb', line 5

def initialize(bool)
  @name = bool
end

Instance Method Details

#contentObject



13
14
15
16
17
18
# File 'lib/ray/payloads/bool_payload.rb', line 13

def content
  {
    content: @name,
    label: 'Boolean'
  }
end

#typeObject



9
10
11
# File 'lib/ray/payloads/bool_payload.rb', line 9

def type
  'custom'
end