lib/account.rb in nylas-2.0.1 vs lib/account.rb in nylas-3.0.0
- old
+ new
@@ -1,8 +1,8 @@
require 'restful_model'
-module Inbox
+module Nylas
class Account < RestfulModel
parameter :account_id
parameter :trial
parameter :trial_expires
@@ -13,10 +13,10 @@
raise UnexpectedAccountAction.new unless action == "upgrade" || action == "downgrade"
collection = ManagementModelCollection.new(Account, @_api, {:account_id=>@account_id})
::RestClient.post("#{collection.url}/#{@account_id}/#{action}",{}) do |response, request, result|
# Throw any exceptions
- json = Inbox.interpret_response(result, response, :expected_class => Object)
+ json = Nylas.interpret_response(result, response, :expected_class => Object)
end
end
def upgrade!
_perform_account_action!('upgrade')