Class: DBus::Data::ObjectPath
- Inherits:
-
StringLike
- Object
- Base
- Basic
- StringLike
- DBus::Data::ObjectPath
- Defined in:
- lib/dbus/data.rb
Overview
See also ObjectPath
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
- .alignment ⇒ Object
- .from_raw(value, mode:) ⇒ Object
- .size_class ⇒ Object
- .type_code ⇒ Object
- .validate_raw!(value) ⇒ Object
Methods inherited from StringLike
Methods inherited from Basic
basic?, from_typed, type, #type
Methods inherited from Base
#==, assert_type_matches_class, basic?, #eql?, fixed?, from_typed, #initialize, #type
Constructor Details
This class inherits a constructor from DBus::Data::StringLike
Class Method Details
.alignment ⇒ Object
454 455 456 |
# File 'lib/dbus/data.rb', line 454 def self.alignment 4 end |
.from_raw(value, mode:) ⇒ Object
469 470 471 472 473 474 475 476 |
# File 'lib/dbus/data.rb', line 469 def self.from_raw(value, mode:) if mode == :plain validate_raw!(value) return value end new(value) end |
.type_code ⇒ Object
450 451 452 |
# File 'lib/dbus/data.rb', line 450 def self.type_code "o" end |
.validate_raw!(value) ⇒ Object
463 464 465 466 467 |
# File 'lib/dbus/data.rb', line 463 def self.validate_raw!(value) DBus::ObjectPath.new(value) rescue DBus::Error => e raise InvalidPacketException, e. end |