Sha256: 12e16735ea48698f205b268f0fd572bff633ab309a330d1c65a19245187e94ec

Contents?: true

Size: 847 Bytes

Versions: 7

Compression:

Stored size: 847 Bytes

Contents

module Ctws
  class Message
    def self.not_found(record = 'record')
      "Sorry, #{record} not found."
    end
    
    def self.unmatched_route(route = 'route')
      "No route matches #{route}"
    end    
    
    def self.invalid_credentials
      'Invalid credentials'
    end
    
    def self.invalid_token
      'Invalid token'
    end
    
    def self.missing_token
      'Missing token'
    end
    
    def self.unauthorized
      'Unauthorized request'
    end
    
    def self.account_created
      'Account created successfully'
    end
    
    def self.account_not_created
      'Account could not be created'
    end
    
    def self.authenticated_user_success
      'Authenticated user successfully'
    end
    
    def self.expired_token
      'Sorry, your token has expired. Please login to continue.'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ctws-0.1.11.alpha app/lib/ctws/message.rb
ctws-0.1.10.alpha app/lib/ctws/message.rb
ctws-0.1.9.alpha app/lib/ctws/message.rb
ctws-0.1.8.alpha app/lib/ctws/message.rb
ctws-0.1.7.alpha app/lib/ctws/message.rb
ctws-0.1.6.alpha app/lib/ctws/message.rb
ctws-0.1.5.alpha app/lib/ctws/message.rb