Class: Files::PairedApiKey
- Inherits:
-
Object
- Object
- Files::PairedApiKey
- Defined in:
- lib/files.com/models/paired_api_key.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(attributes = {}, options = {}) ⇒ PairedApiKey
constructor
A new instance of PairedApiKey.
-
#nickname ⇒ Object
string - Unique nickname for this api key.
-
#password ⇒ Object
string - Paired api key password.
-
#server ⇒ Object
string - Site URL.
-
#username ⇒ Object
string - Paired api key username.
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ PairedApiKey
Returns a new instance of PairedApiKey.
7 8 9 10 |
# File 'lib/files.com/models/paired_api_key.rb', line 7 def initialize(attributes = {}, = {}) @attributes = attributes || {} @options = || {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/files.com/models/paired_api_key.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/paired_api_key.rb', line 5 def @options end |
Instance Method Details
#nickname ⇒ Object
string - Unique nickname for this api key
28 29 30 |
# File 'lib/files.com/models/paired_api_key.rb', line 28 def nickname @attributes[:nickname] end |
#password ⇒ Object
string - Paired api key password
23 24 25 |
# File 'lib/files.com/models/paired_api_key.rb', line 23 def password @attributes[:password] end |
#server ⇒ Object
string - Site URL
13 14 15 |
# File 'lib/files.com/models/paired_api_key.rb', line 13 def server @attributes[:server] end |
#username ⇒ Object
string - Paired api key username
18 19 20 |
# File 'lib/files.com/models/paired_api_key.rb', line 18 def username @attributes[:username] end |