Class: RedMilk
Instance Attribute Summary collapse
-
#authorization_url ⇒ Object
readonly
Returns the value of attribute authorization_url.
Instance Method Summary collapse
- #inbox ⇒ Object
-
#initialize {|_self| ... } ⇒ RedMilk
constructor
A new instance of RedMilk.
- #lists ⇒ Object
- #tasks_due(date = Date.today) ⇒ Object
Constructor Details
#initialize {|_self| ... } ⇒ RedMilk
Returns a new instance of RedMilk.
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/redmilk.rb', line 12 def initialize @http = Net::HTTP.new('www.rememberthemilk.com', 443) @http.use_ssl = true @http.verify_mode = OpenSSL::SSL::VERIFY_NONE @config = AppConfig.new('~/.redmilk.yaml') @token = get_token yield(self) if ! && block_given? end |
Instance Attribute Details
#authorization_url ⇒ Object (readonly)
Returns the value of attribute authorization_url.
10 11 12 |
# File 'lib/redmilk.rb', line 10 def @authorization_url end |