Class: ActivityPub::URI
- Inherits:
-
Object
- Object
- ActivityPub::URI
- Defined in:
- lib/activitypub/uri.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(href, resolver: nil) ⇒ URI
constructor
A new instance of URI.
- #to_json ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(href, resolver: nil) ⇒ URI
Returns a new instance of URI.
8 9 10 11 |
# File 'lib/activitypub/uri.rb', line 8 def initialize(href, resolver: nil) @href = href @_resolver = resolver end |
Instance Attribute Details
#_resolver ⇒ Object
13 |
# File 'lib/activitypub/uri.rb', line 13 def _resolver = (@_resolver || WebResolver) |