Class: Emailable::BatchStatus

Inherits:
APIResource show all
Defined in:
lib/emailable/resources/batch_status.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from APIResource

#initialize, #inspect, #to_h, #to_json

Constructor Details

This class inherits a constructor from Emailable::APIResource

Instance Attribute Details

#download_fileObject

Returns the value of attribute download_file.



3
4
5
# File 'lib/emailable/resources/batch_status.rb', line 3

def download_file
  @download_file
end

#emailsObject

Returns the value of attribute emails.



3
4
5
# File 'lib/emailable/resources/batch_status.rb', line 3

def emails
  @emails
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/emailable/resources/batch_status.rb', line 3

def id
  @id
end

#messageObject

Returns the value of attribute message.



3
4
5
# File 'lib/emailable/resources/batch_status.rb', line 3

def message
  @message
end

#processedObject

Returns the value of attribute processed.



3
4
5
# File 'lib/emailable/resources/batch_status.rb', line 3

def processed
  @processed
end

#reason_countsObject

Returns the value of attribute reason_counts.



3
4
5
# File 'lib/emailable/resources/batch_status.rb', line 3

def reason_counts
  @reason_counts
end

#totalObject

Returns the value of attribute total.



3
4
5
# File 'lib/emailable/resources/batch_status.rb', line 3

def total
  @total
end

#total_countsObject

Returns the value of attribute total_counts.



3
4
5
# File 'lib/emailable/resources/batch_status.rb', line 3

def total_counts
  @total_counts
end

Instance Method Details

#complete?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/emailable/resources/batch_status.rb', line 6

def complete?
  message.include?('completed')
end