Class: Ray::Payloads::BoolPayload
- Defined in:
- lib/ray/payloads/bool_payload.rb
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(bool) ⇒ BoolPayload
constructor
A new instance of BoolPayload.
- #type ⇒ Object
Methods inherited from Payload
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
#content ⇒ Object
13 14 15 16 17 18 |
# File 'lib/ray/payloads/bool_payload.rb', line 13 def content { content: @name, label: 'Boolean' } end |
#type ⇒ Object
9 10 11 |
# File 'lib/ray/payloads/bool_payload.rb', line 9 def type 'custom' end |