Class: WMData
- Inherits:
-
Object
- Object
- WMData
- Defined in:
- lib/libowl/wm_data.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#ticket ⇒ Object
Returns the value of attribute ticket.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri, attributes, ticket = 0) ⇒ WMData
constructor
A new instance of WMData.
- #to_s ⇒ Object
Constructor Details
#initialize(uri, attributes, ticket = 0) ⇒ WMData
Returns a new instance of WMData.
47 48 49 50 51 |
# File 'lib/libowl/wm_data.rb', line 47 def initialize(uri, attributes, ticket = 0) @uri = uri @attributes = attributes @ticket = ticket end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
39 40 41 |
# File 'lib/libowl/wm_data.rb', line 39 def attributes @attributes end |
#ticket ⇒ Object
Returns the value of attribute ticket.
39 40 41 |
# File 'lib/libowl/wm_data.rb', line 39 def ticket @ticket end |
#uri ⇒ Object
Returns the value of attribute uri.
39 40 41 |
# File 'lib/libowl/wm_data.rb', line 39 def uri @uri end |
Instance Method Details
#to_s ⇒ Object
53 54 55 56 57 58 59 |
# File 'lib/libowl/wm_data.rb', line 53 def to_s() str = "#{@uri}:\n" for attr in @attributes do str += "\t#{attr.name}, #{attr.creation}, #{attr.expiration}, #{attr.origin}: #{attr.data.unpack('H*')}\n" end return str end |