Sha256: 75e229b03182726ec786472c6867683829d749088760df577f8d68a2fa4cd2a4
Contents?: true
Size: 389 Bytes
Versions: 4
Compression:
Stored size: 389 Bytes
Contents
module Restspec module Schema class Schema attr_reader :name, :attributes def initialize(name) self.name = name self.attributes = {} end def extend_with(without: []) without.each { |attribute_name| attributes.delete(attribute_name.to_s) } self end private attr_writer :name, :attributes end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
restspec-0.0.4 | lib/restspec/schema/schema.rb |
restspec-0.0.3 | lib/restspec/schema/schema.rb |
restspec-0.0.2 | lib/restspec/schema/schema.rb |
restspec-0.0.1 | lib/restspec/schema/schema.rb |