Class: Ronin::DB::WebCredential
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Ronin::DB::WebCredential
- Includes:
- Model
- Defined in:
- lib/ronin/db/web_credential.rb
Overview
Represents Credentials used to access websites at specified URLs.
Instance Attribute Summary collapse
- #credential ⇒ Credential
-
#id ⇒ Integer
Primary key of the service credential.
-
#url ⇒ URL?
The URL the credential can be used with.
Instance Method Summary collapse
-
#to_s ⇒ String
Converts the web credential to a String.
Methods included from Model
Instance Attribute Details
#id ⇒ Integer
Primary key of the service credential.
38 |
# File 'lib/ronin/db/web_credential.rb', line 38 attribute :id, :integer |
#url ⇒ URL?
The URL the credential can be used with.
49 50 |
# File 'lib/ronin/db/web_credential.rb', line 49 belongs_to :url, optional: true, class_name: 'URL' |
Instance Method Details
#to_s ⇒ String
Converts the web credential to a String.
60 61 62 |
# File 'lib/ronin/db/web_credential.rb', line 60 def to_s "#{self.credential} (#{self.url})" end |