lib/hyperclient/resource.rb in hyperclient-0.8.1 vs lib/hyperclient/resource.rb in hyperclient-0.8.2

- old
+ new

@@ -1,9 +1,6 @@ require 'forwardable' -require 'hyperclient/attributes' -require 'hyperclient/link_collection' -require 'hyperclient/resource_collection' module Hyperclient # Public: Represents a resource from your API. Its responsability is to # ease the way you access its attributes, links and embedded resources. class Resource @@ -63,10 +60,10 @@ if args.any? args.first elsif block_given? yield key else - fail KeyError + raise KeyError end end private