Class: Mona::Client
- Inherits:
-
HTTPClient
- Object
- HTTPClient
- Mona::Client
- Defined in:
- lib/mona/client.rb
Instance Attribute Summary collapse
-
#last_accessed_at ⇒ Object
readonly
Returns the value of attribute last_accessed_at.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(args = {}) ⇒ Client
Returns a new instance of Client.
4 5 6 7 8 9 |
# File 'lib/mona/client.rb', line 4 def initialize(args = {}) agent_name = args.delete(:agent_name) || 'Monazilla' agent_name += "/#{Mona.version} (ruby-mona)" super(agent_name: agent_name) self.transparent_gzip_decompression = true end |
Instance Attribute Details
#last_accessed_at ⇒ Object (readonly)
Returns the value of attribute last_accessed_at.
3 4 5 |
# File 'lib/mona/client.rb', line 3 def last_accessed_at @last_accessed_at end |