lib/oneaccess/api/v3_0/interactions.rb in oneaccess-1.2.0 vs lib/oneaccess/api/v3_0/interactions.rb in oneaccess-1.3.0

- old
+ new

@@ -1,25 +1,25 @@ # frozen_string_literal: true -require "date" +require 'date' -require_relative "../../response/buy_side_interactions_response" +require_relative '../../response/buy_side_interactions_response' module ONEAccess module API module V3_0 class Interactions < Base module Types - RESEARCH_READERSHIP = "Research Readership" + RESEARCH_READERSHIP = 'Research Readership' end - DATE_FORMAT = "%Y-%m-%d %H:%M" + DATE_FORMAT = '%Y-%m-%d %H:%M' DATE_FORMAT_REGEX = /\d{4}-\d{2}-\d{2} \d{2}:\d{2}/ private_constant :DATE_FORMAT private_constant :DATE_FORMAT_REGEX - api_path "/interactions" + api_path '/interactions' class << self def buy_side_interactions( type:, start_date:, @@ -32,12 +32,12 @@ validate_date(start_date) validate_date(end_date) response = send_post( - "buysideinteractions", - payload(type, start_date, end_date, user_id, broker, company_name, email) + 'buysideinteractions', + payload(type, start_date, end_date, user_id, broker, company_name, email), ) Response::BuySideInteractionsResponse.from_json(response.body) end @@ -68,10 +68,10 @@ end_date: end_date, user_id: user_id.to_s, interaction_type: type, broker: broker.to_s, investor: company_name.to_s, - investor_attendees: [{ email: email }] + investor_attendees: [{ email: email }], } end end end end