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



36
37
38
# File 'lib/protoplasm/types/types.rb', line 36

def field
  @field
end

#request_classObject

Returns the value of attribute request_class

Returns:

  • (Object)

    the current value of request_class



36
37
38
# File 'lib/protoplasm/types/types.rb', line 36

def request_class
  @request_class
end

#response_classObject

Returns the value of attribute response_class

Returns:

  • (Object)

    the current value of response_class



36
37
38
# File 'lib/protoplasm/types/types.rb', line 36

def response_class
  @response_class
end

#streamingObject Also known as: streaming?

Returns the value of attribute streaming

Returns:

  • (Object)

    the current value of streaming



36
37
38
# File 'lib/protoplasm/types/types.rb', line 36

def streaming
  @streaming
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



36
37
38
# File 'lib/protoplasm/types/types.rb', line 36

def type
  @type
end

Instance Method Details

#command_classObject



40
41
42
# File 'lib/protoplasm/types/types.rb', line 40

def command_class
  request_class
end

#void?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/protoplasm/types/types.rb', line 44

def void?
  response_class.nil?
end