Class: Files::PublicIpAddress
- Inherits:
-
Object
- Object
- Files::PublicIpAddress
- Defined in:
- lib/files.com/models/public_ip_address.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
-
#ftp_enabled ⇒ Object
boolean.
-
#initialize(attributes = {}, options = {}) ⇒ PublicIpAddress
constructor
A new instance of PublicIpAddress.
-
#ip_address ⇒ Object
string - The public IP address.
-
#server_name ⇒ Object
string - The name of the frontend server.
-
#sftp_enabled ⇒ Object
boolean.
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 = {}, = {}) @attributes = attributes || {} @options = || {} end |
Instance Attribute Details
#attributes ⇒ Object (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 |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/public_ip_address.rb', line 5 def @options end |
Instance Method Details
#ftp_enabled ⇒ Object
boolean
23 24 25 |
# File 'lib/files.com/models/public_ip_address.rb', line 23 def ftp_enabled @attributes[:ftp_enabled] end |
#ip_address ⇒ Object
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_name ⇒ Object
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_enabled ⇒ Object
boolean
28 29 30 |
# File 'lib/files.com/models/public_ip_address.rb', line 28 def sftp_enabled @attributes[:sftp_enabled] end |