Sha256: eea0b3464f86021071afac06b6d6d6f14722d8f2ab1fdf922c1aff50ca41eae0

Contents?: true

Size: 403 Bytes

Versions: 8

Compression:

Stored size: 403 Bytes

Contents

module ActiveTriples
  ##
  # A value object to encapsulate what a Property is. Instantiate with a hash of
  # options.
  class Property < OpenStruct
    # Returns the property's configuration values. Will not return #name, which is
    # meant to only be accessible via the accessor.
    # @return [Hash] Configuration values for this property.
    def to_h
      super.except(:name)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
active-triples-0.7.6 lib/active_triples/property.rb
active-triples-0.7.5 lib/active_triples/property.rb
active-triples-0.7.4 lib/active_triples/property.rb
active-triples-0.7.3 lib/active_triples/property.rb
active-triples-0.7.2 lib/active_triples/property.rb
active-triples-0.7.1 lib/active_triples/property.rb
active-triples-0.8.1 lib/active_triples/property.rb
active-triples-0.8.0 lib/active_triples/property.rb