Class: POSIX_MQ::Attr

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

Overview

An analogous Struct to “struct mq_attr” in C. This may be used in arguments for POSIX_MQ.new and POSIX_MQ#attr=. POSIX_MQ#attr returns an instance of this class.

See the mq_getattr(3) manpage for more information on the values.

Instance Attribute Summary collapse

Instance Attribute Details

#curmsgsObject

Returns the value of attribute curmsgs

Returns:

  • (Object)

    the current value of curmsgs



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

def curmsgs
  @curmsgs
end

#flagsObject

Returns the value of attribute flags

Returns:

  • (Object)

    the current value of flags



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

def flags
  @flags
end

#maxmsgObject

Returns the value of attribute maxmsg

Returns:

  • (Object)

    the current value of maxmsg



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

def maxmsg
  @maxmsg
end

#msgsizeObject

Returns the value of attribute msgsize

Returns:

  • (Object)

    the current value of msgsize



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

def msgsize
  @msgsize
end