Sha256: e3adf27f29ee25279980d362b322dacaca917b6a6ac137997ad0eb52101dd378
Contents?: true
Size: 560 Bytes
Versions: 3
Compression:
Stored size: 560 Bytes
Contents
# frozen_string_literal: true module MailerLite # This is a class for manipulating the Timezones from MailerLite API. class Timezones attr_reader :client # Inits the `Timezones` class with the specified `client`. # # @param client [MailerLite::Client] the `Client` instance to use def initialize(client: MailerLite::Client.new) @client = client end # Returns a list of Timezones # # @return [HTTP::Response] the response from the API def list client.http.get("#{API_URL}/timezones") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mailerlite-ruby-1.0.4 | lib/mailerlite/timezones/timezones.rb |
mailerlite-ruby-1.0.3 | lib/mailerlite/timezones/timezones.rb |
mailerlite-ruby-1.0.2 | lib/mailerlite/timezones/timezones.rb |