Class: Tumblr::Account
- Inherits:
-
Object
- Object
- Tumblr::Account
- Defined in:
- lib/tumblr.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Account
constructor
A new instance of Account.
- #method_missing(m, *a, &b) ⇒ Object
- #options ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Account
Returns a new instance of Account.
44 45 46 47 |
# File 'lib/tumblr.rb', line 44 def initialize = {} .each{|k,v| send k, v} httpclient.debug_dev = debug if debug? end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *a, &b) ⇒ Object
57 58 59 60 |
# File 'lib/tumblr.rb', line 57 def method_missing m, *a, &b super unless api.respond_to? m api.send m, *a, &b end |
Instance Method Details
#options ⇒ Object
49 50 51 52 53 54 55 |
# File 'lib/tumblr.rb', line 49 def { 'email' => email, 'password' => password, 'generator' => generator, } end |