Sha256: bad2c21f55f31797c52d1312970f7354499b2a363124e1d5b3b53f45ea33eda2
Contents?: true
Size: 871 Bytes
Versions: 4
Compression:
Stored size: 871 Bytes
Contents
module MailUp module Stats class Base attr_accessor :api def initialize(api) # :nodoc: @api = api @api.path = "/API/v#{MailUp::API_VERSION}/Rest/MailStatisticsService.svc" end # Create a message object # # @param [Integer] id The message_id of the message to access. # # @return [MailUp::Stats::Message] # # @example # # message = mailup.stats.message(1) # def message(id) Message.new id, @api end # Create a recipient object # # @param [Integer] id The recipient_id of the recipient to access. # # @return [MailUp::Stats::Recipient] # # @example # # recipient = mailup.stats.recipient(154) # def recipient(id) Recipient.new id, @api end end end end
Version data entries
4 entries across 4 versions & 2 rubygems