Class: Ray::Payloads::IntPayload
- Defined in:
- lib/ray/payloads/int_payload.rb
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(int) ⇒ IntPayload
constructor
A new instance of IntPayload.
- #type ⇒ Object
Methods inherited from Payload
Constructor Details
#initialize(int) ⇒ IntPayload
Returns a new instance of IntPayload.
5 6 7 |
# File 'lib/ray/payloads/int_payload.rb', line 5 def initialize(int) @int = int end |
Instance Method Details
#content ⇒ Object
13 14 15 16 17 18 |
# File 'lib/ray/payloads/int_payload.rb', line 13 def content { content: @int, label: 'Integer' } end |
#type ⇒ Object
9 10 11 |
# File 'lib/ray/payloads/int_payload.rb', line 9 def type 'custom' end |