Module: Hypem
- Defined in:
- lib/hypem.rb,
lib/exceptions.rb,
lib/hypem/blog.rb,
lib/hypem/user.rb,
lib/hypem/track.rb,
lib/hypem/request.rb,
lib/hypem/version.rb,
lib/hypem/playlist.rb,
lib/hypem/response.rb
Defined Under Namespace
Classes: Blog, Playlist, Request, RequestError, Response, Track, User
Constant Summary collapse
- ROOT_PATH =
'http://hypem.com'
- VERSION =
"0.2.0"
Class Method Summary collapse
-
.method_missing(method, *args) ⇒ Object
convenient way of accessing module classes.
Class Method Details
.method_missing(method, *args) ⇒ Object
convenient way of accessing module classes
12 13 14 15 16 17 18 19 20 |
# File 'lib/hypem.rb', line 12 def self.method_missing(method, *args) method_name = method.capitalize raise ArgumentError unless self.const_defined? method_name if args.empty? self.const_get(method_name) else self.const_get(method_name).send(:new, *args) end end |