lib/bremen/base.rb in bremen-0.0.1 vs lib/bremen/base.rb in bremen-0.1.0

- old
+ new

@@ -7,16 +7,22 @@ extend Request class << self attr_accessor :default_options - def find options = {} - convert_from_response(get(search_url(options))) + def find uid_or_url + convert_singly(get(find_url(uid_or_url))) end + def search options = {} + convert_multiply(get(search_url(options))) + end + #abstract methods + def find_url uid_or_url; end def search_url options = {}; end private - def convert_from_response response; end + def convert_singly response; end + def convert_multiply response; end end end end