Class: ActiveFedora::FedoraStatement

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ FedoraStatement

Returns a new instance of FedoraStatement.



60
61
62
# File 'lib/active_fedora/change_set.rb', line 60

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



59
60
61
# File 'lib/active_fedora/change_set.rb', line 59

def value
  @value
end

Instance Method Details

#internal?Boolean

Returns:

  • (Boolean)


64
65
66
67
# File 'lib/active_fedora/change_set.rb', line 64

def internal?
  value.object.to_s.start_with?("http://www.jcp.org", "http://fedora.info") ||
    value.predicate.to_s.start_with?("http://fedora.info")
end