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
-
#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.
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
#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 |