Class: Files::PairedApiKey

Inherits:
Object
  • Object
show all
Defined in:
lib/files.com/models/paired_api_key.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = {}, options = {})
  @attributes = attributes || {}
  @options = options || {}
end

Instance Attribute Details

#attributesObject (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

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/files.com/models/paired_api_key.rb', line 5

def options
  @options
end

Instance Method Details

#nicknameObject

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

#passwordObject

string - Paired api key password



23
24
25
# File 'lib/files.com/models/paired_api_key.rb', line 23

def password
  @attributes[:password]
end

#serverObject

string - Site URL



13
14
15
# File 'lib/files.com/models/paired_api_key.rb', line 13

def server
  @attributes[:server]
end

#usernameObject

string - Paired api key username



18
19
20
# File 'lib/files.com/models/paired_api_key.rb', line 18

def username
  @attributes[:username]
end