class Finnhub::Merge_Country
Attributes
country[R]
Public Class Methods
new(client:, country:)
click to toggle source
# File lib/Country.rb, line 3 def initialize(client:, country:) @client = client @country = country end
Public Instance Methods
merger(from: nil, to: nil)
click to toggle source
# File lib/Country.rb, line 10 def merger(from: nil, to: nil) url = "/merger?country=#{@country}" from = from.to_date.to_s if from.is_a?(Time) url += "&from=#{from}" to = to.to_date.to_s if to.is_a?(Time) url += "&to=#{to}" @client.request(url) end