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.



62
63
64
# File 'lib/active_fedora/change_set.rb', line 62

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



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

def value
  @value
end

Instance Method Details

#internal?Boolean

Returns:

  • (Boolean)


66
67
68
69
# File 'lib/active_fedora/change_set.rb', line 66

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