Class: Neows::Client
- Inherits:
-
Object
- Object
- Neows::Client
- Defined in:
- lib/neows/client.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#base_url ⇒ Object
Returns the value of attribute base_url.
Instance Method Summary collapse
-
#initialize(options = {}) {|_self| ... } ⇒ Neows::Client
constructor
Initializes a new Client object.
- #user_agent ⇒ String
Constructor Details
#initialize(options = {}) {|_self| ... } ⇒ Neows::Client
Initializes a new Client object
11 12 13 14 15 16 |
# File 'lib/neows/client.rb', line 11 def initialize( = {}) .each do |key, value| instance_variable_set("@#{key}", value) end yield(self) if block_given? end |
Instance Attribute Details
#base_url ⇒ Object
Returns the value of attribute base_url.
5 6 7 |
# File 'lib/neows/client.rb', line 5 def base_url @base_url end |