lib/pupil/schemes.rb in pupil-0.3.0 vs lib/pupil/schemes.rb in pupil-0.3.1
- old
+ new
@@ -13,9 +13,10 @@
@access_token = access_token
@element = element
end
def params() @element.keys.map{|k|k.to_sym} ; end
+ alias_method :available_methods, :params
end
class User < Scheme
def status
Pupil::Status.new(@element["status"], @access_token) rescue nil
\ No newline at end of file