Class: Ryo::Client
- Inherits:
-
Object
- Object
- Ryo::Client
- Defined in:
- lib/ryo/client.rb
Instance Attribute Summary collapse
-
#http ⇒ Object
readonly
Returns the value of attribute http.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize ⇒ Client
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
#http ⇒ Object (readonly)
Returns the value of attribute http.
7 8 9 |
# File 'lib/ryo/client.rb', line 7 def http @http end |
Class Method Details
.http ⇒ Object
12 13 14 |
# File 'lib/ryo/client.rb', line 12 def self.http new.http end |