Class: EStat::Client
- Inherits:
-
Object
- Object
- EStat::Client
- Includes:
- Connection, Endpoint, Request
- Defined in:
- lib/e-stat/client.rb
Instance Method Summary collapse
- #endpoint ⇒ Object
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Endpoint
#data_catalog, #meta_info, #post_dataset, #ref_dataset, #stats_data, #stats_list
Methods included from Request
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
10 11 12 13 14 15 |
# File 'lib/e-stat/client.rb', line 10 def initialize( = {}) = EStat..merge() Configuration::OPTIONS_KEYS.each do |key| send("#{key}=", [key]) end end |
Instance Method Details
#endpoint ⇒ Object
21 22 23 24 25 |
# File 'lib/e-stat/client.rb', line 21 def endpoint return base_url if format.nil? "#{base_url}/#{format}" end |