Class: AceMQ::AMQP::Patterns::SchemaDefinition

Inherits:
Struct
  • Object
show all
Defined in:
lib/acemq/amqp/patterns/schema.rb

Overview

One version of a message's shape.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#definition ⇒ Object

Returns the value of attribute definition

Returns:

  • (Object) —

    the current value of definition



38
39
40
# File 'lib/acemq/amqp/patterns/schema.rb', line 38

def definition
  @definition
end

#fingerprint ⇒ Object

Returns the value of attribute fingerprint

Returns:

  • (Object) —

    the current value of fingerprint



38
39
40
# File 'lib/acemq/amqp/patterns/schema.rb', line 38

def fingerprint
  @fingerprint
end

#format ⇒ Object

Returns the value of attribute format

Returns:

  • (Object) —

    the current value of format



38
39
40
# File 'lib/acemq/amqp/patterns/schema.rb', line 38

def format
  @format
end

#id ⇒ Object

Returns the value of attribute id

Returns:

  • (Object) —

    the current value of id



38
39
40
# File 'lib/acemq/amqp/patterns/schema.rb', line 38

def id
  @id
end

#registered_at ⇒ Object

Returns the value of attribute registered_at

Returns:

  • (Object) —

    the current value of registered_at



38
39
40
# File 'lib/acemq/amqp/patterns/schema.rb', line 38

def registered_at
  @registered_at
end

#subject ⇒ Object

Returns the value of attribute subject

Returns:

  • (Object) —

    the current value of subject



38
39
40
# File 'lib/acemq/amqp/patterns/schema.rb', line 38

def subject
  @subject
end

#version ⇒ Object

Returns the value of attribute version

Returns:

  • (Object) —

    the current value of version



38
39
40
# File 'lib/acemq/amqp/patterns/schema.rb', line 38

def version
  @version
end

Instance Method Details

#to_s ⇒ Object



42
# File 'lib/acemq/amqp/patterns/schema.rb', line 42

def to_s = "#{subject} v#{version} (#{format}, id #{id})"