Class: Treblle::Models::Request::Server
- Inherits:
-
Object
- Object
- Treblle::Models::Request::Server
- Defined in:
- lib/treblle/models/request/server.rb
Instance Attribute Summary collapse
-
#os_architecture ⇒ Object
readonly
Returns the value of attribute os_architecture.
-
#os_name ⇒ Object
readonly
Returns the value of attribute os_name.
-
#protocol ⇒ Object
readonly
Returns the value of attribute protocol.
-
#remote_addr ⇒ Object
readonly
Returns the value of attribute remote_addr.
-
#software ⇒ Object
readonly
Returns the value of attribute software.
-
#timezone ⇒ Object
readonly
Returns the value of attribute timezone.
Instance Method Summary collapse
-
#initialize(request) ⇒ Server
constructor
A new instance of Server.
Constructor Details
#initialize(request) ⇒ Server
Returns a new instance of Server.
9 10 11 12 13 14 15 16 17 |
# File 'lib/treblle/models/request/server.rb', line 9 def initialize(request) @request = request @software = get_server_software @protocol = get_server_protocol @os_architecture = get_platform @os_name = get_host_os @timezone = get_timezone @remote_addr = get_remote_addr end |
Instance Attribute Details
#os_architecture ⇒ Object (readonly)
Returns the value of attribute os_architecture.
19 20 21 |
# File 'lib/treblle/models/request/server.rb', line 19 def os_architecture @os_architecture end |
#os_name ⇒ Object (readonly)
Returns the value of attribute os_name.
19 20 21 |
# File 'lib/treblle/models/request/server.rb', line 19 def os_name @os_name end |
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol.
19 20 21 |
# File 'lib/treblle/models/request/server.rb', line 19 def protocol @protocol end |
#remote_addr ⇒ Object (readonly)
Returns the value of attribute remote_addr.
19 20 21 |
# File 'lib/treblle/models/request/server.rb', line 19 def remote_addr @remote_addr end |
#software ⇒ Object (readonly)
Returns the value of attribute software.
19 20 21 |
# File 'lib/treblle/models/request/server.rb', line 19 def software @software end |
#timezone ⇒ Object (readonly)
Returns the value of attribute timezone.
19 20 21 |
# File 'lib/treblle/models/request/server.rb', line 19 def timezone @timezone end |