class Packagecloud::Credentials
Attributes
token[R]
username[R]
Public Class Methods
new(username, token)
click to toggle source
# File lib/packagecloud/credentials.rb, line 6 def initialize(username, token) @username = username @token = token if @username.include?("@") raise InvalidUsernameException.new("Sorry, looks like you may have " \ "tried to use an email address " \ "instead of your packagecloud.io " \ "username. Please use your " \ "username instead!") end end