Class: Key
Overview
Copyright © 2009 Red Hat, Inc.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Instance Attribute Summary collapse
-
#credential_type ⇒ Object
Returns the value of attribute credential_type.
-
#fingerprint ⇒ Object
Returns the value of attribute fingerprint.
-
#password ⇒ Object
Returns the value of attribute password.
-
#pem_rsa_key ⇒ Object
Returns the value of attribute pem_rsa_key.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
Methods inherited from BaseModel
attr_accessor, attributes, #attributes, #id, #initialize, #to_hash, #to_json
Constructor Details
This class inherits a constructor from BaseModel
Instance Attribute Details
#credential_type ⇒ Object
Returns the value of attribute credential_type.
21 22 23 |
# File 'lib/deltacloud/models/key.rb', line 21 def credential_type @credential_type end |
#fingerprint ⇒ Object
Returns the value of attribute fingerprint.
22 23 24 |
# File 'lib/deltacloud/models/key.rb', line 22 def fingerprint @fingerprint end |
#password ⇒ Object
Returns the value of attribute password.
24 25 26 |
# File 'lib/deltacloud/models/key.rb', line 24 def password @password end |
#pem_rsa_key ⇒ Object
Returns the value of attribute pem_rsa_key.
25 26 27 |
# File 'lib/deltacloud/models/key.rb', line 25 def pem_rsa_key @pem_rsa_key end |
#username ⇒ Object
Returns the value of attribute username.
23 24 25 |
# File 'lib/deltacloud/models/key.rb', line 23 def username @username end |
Instance Method Details
#is_key? ⇒ Boolean
31 32 33 |
# File 'lib/deltacloud/models/key.rb', line 31 def is_key? true if @credential_type.eql?(:key) end |
#is_password? ⇒ Boolean
27 28 29 |
# File 'lib/deltacloud/models/key.rb', line 27 def is_password? true if @credential_type.eql?(:password) end |