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



13
14
15
# File 'lib/posix_mq.rb', line 13

def curmsgs
  @curmsgs
end

#flagsObject

Returns the value of attribute flags

Returns:

  • (Object)

    the current value of flags



13
14
15
# File 'lib/posix_mq.rb', line 13

def flags
  @flags
end

#maxmsgObject

Returns the value of attribute maxmsg

Returns:

  • (Object)

    the current value of maxmsg



13
14
15
# File 'lib/posix_mq.rb', line 13

def maxmsg
  @maxmsg
end

#msgsizeObject

Returns the value of attribute msgsize

Returns:

  • (Object)

    the current value of msgsize



13
14
15
# File 'lib/posix_mq.rb', line 13

def msgsize
  @msgsize
end