Class: Messaging::Message::Metadata::Property

Inherits:
Struct
  • Object
show all
Defined in:
lib/messaging/message/metadata/property.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#localObject

Returns the value of attribute local

Returns:

  • (Object)

    the current value of local



4
5
6
# File 'lib/messaging/message/metadata/property.rb', line 4

def local
  @local
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



4
5
6
# File 'lib/messaging/message/metadata/property.rb', line 4

def name
  @name
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



4
5
6
# File 'lib/messaging/message/metadata/property.rb', line 4

def value
  @value
end

Instance Method Details

#==(other) ⇒ Object



13
14
15
16
17
18
# File 'lib/messaging/message/metadata/property.rb', line 13

def ==(other)
  equal =
    name == other.name &&
    value == other.value &&
    !!local == !!other.local
end

#local?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/messaging/message/metadata/property.rb', line 9

def local?
  local == true
end