lib/rumour-ruby/client.rb in rumour-ruby-0.0.2 vs lib/rumour-ruby/client.rb in rumour-ruby-0.0.3

- old
+ new

@@ -10,9 +10,10 @@ attr_accessor :access_token def initialize(access_token = nil) @access_token = access_token || Rumour.configuration.access_token + raise Rumour::Errors::AuthenticationError.new('Missing access token') if @access_token.nil? end def send_text_message(sender, recipient, body) post('/text_messages', text_message: { from: sender, recipient: recipient, body: body }) end