Class: ActiveFedora::MaybeHashUri

Inherits:
Object
  • Object
show all
Defined in:
lib/active_fedora/sparql_insert.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ MaybeHashUri

Returns a new instance of MaybeHashUri.



71
72
73
# File 'lib/active_fedora/sparql_insert.rb', line 71

def initialize(uri)
  @uri = uri
end

Instance Attribute Details

#uriObject (readonly)

Returns the value of attribute uri.



70
71
72
# File 'lib/active_fedora/sparql_insert.rb', line 70

def uri
  @uri
end

Instance Method Details

#hash?Boolean

Returns:

  • (Boolean)


75
76
77
# File 'lib/active_fedora/sparql_insert.rb', line 75

def hash?
  uri.to_s.include?("#")
end