Class: Mona::Client

Inherits:
HTTPClient
  • Object
show all
Defined in:
lib/mona/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_atObject (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