Class: Protoplasm::Types::RequestResponseType

Inherits:
Struct
  • Object
show all
Defined in:
lib/protoplasm/types/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fieldObject

Returns the value of attribute field

Returns:

  • (Object)

    the current value of field



15
16
17
# File 'lib/protoplasm/types/types.rb', line 15

def field
  @field
end

#request_classObject

Returns the value of attribute request_class

Returns:

  • (Object)

    the current value of request_class



15
16
17
# File 'lib/protoplasm/types/types.rb', line 15

def request_class
  @request_class
end

#response_classObject

Returns the value of attribute response_class

Returns:

  • (Object)

    the current value of response_class



15
16
17
# File 'lib/protoplasm/types/types.rb', line 15

def response_class
  @response_class
end

#streamingObject Also known as: streaming?

Returns the value of attribute streaming

Returns:

  • (Object)

    the current value of streaming



15
16
17
# File 'lib/protoplasm/types/types.rb', line 15

def streaming
  @streaming
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



15
16
17
# File 'lib/protoplasm/types/types.rb', line 15

def type
  @type
end

Instance Method Details

#command_classObject



19
20
21
# File 'lib/protoplasm/types/types.rb', line 19

def command_class
  request_class
end

#void?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/protoplasm/types/types.rb', line 23

def void?
  response_class.nil?
end