Class: Ryo::Client

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeClient

Returns a new instance of Client.



8
9
10
# File 'lib/ryo/client.rb', line 8

def initialize
  @http = HTTP.headers(user_agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393")
end

Instance Attribute Details

#httpObject (readonly)

Returns the value of attribute http.



7
8
9
# File 'lib/ryo/client.rb', line 7

def http
  @http
end

Class Method Details

.httpObject



12
13
14
# File 'lib/ryo/client.rb', line 12

def self.http
  new.http
end