Sha256: d31c05acc4f80eceb63f5874c2d20f05dfb3837110c2b49d504d208961713ac4

Contents?: true

Size: 299 Bytes

Versions: 4

Compression:

Stored size: 299 Bytes

Contents

require 'active_support/concern'

class Frenetic
  module MemberRestMethods
    extend ActiveSupport::Concern

    module ClassMethods
      def find( id = nil )
        if response = api.get( member_url(id) ) and response.success?
          new response.body
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
frenetic-0.0.20.alpha.3 lib/frenetic/concerns/member_rest_methods.rb
frenetic-0.0.20.alpha.2 lib/frenetic/concerns/member_rest_methods.rb
frenetic-0.0.20.alpha.1 lib/frenetic/concerns/member_rest_methods.rb
frenetic-0.0.20.alpha.0 lib/frenetic/concerns/member_rest_methods.rb