Class: Files::PublicIpAddress

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}, options = {}) ⇒ PublicIpAddress

Returns a new instance of PublicIpAddress.



7
8
9
10
# File 'lib/files.com/models/public_ip_address.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/public_ip_address.rb', line 5

def attributes
  @attributes
end

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end

Instance Method Details

#ftp_enabledObject

string



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

def ftp_enabled
  @attributes[:ftp_enabled]
end

#ip_addressObject

string - The public IP address.



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

def ip_address
  @attributes[:ip_address]
end

#server_nameObject

string - The name of the frontend server.



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

def server_name
  @attributes[:server_name]
end

#sftp_enabledObject

string



28
29
30
# File 'lib/files.com/models/public_ip_address.rb', line 28

def sftp_enabled
  @attributes[:sftp_enabled]
end