class ServiceEndpoint
Class representing an XRD Service element.
Attributes
canonical_id[RW]
element[RW]
service_types[RW]
uri[RW]
yadis[RW]
yadis_uri[RW]
Public Class Methods
new()
click to toggle source
# File lib/yadis/service.rb, line 6 def initialize @service_types = [] @uri = nil @yadis_uri = nil @element = nil @canonical_id = nil end
Public Instance Methods
==(other)
click to toggle source
# File lib/yadis/service.rb, line 18 def ==(other) return self.instance_variables == other.instance_variables end
match_type_uris(type_uris)
click to toggle source
# File lib/yadis/service.rb, line 14 def match_type_uris(type_uris) type_uris.find_all {|t| @service_types.member?(t)} end