Class: Mws::Apis::Feeds::SubmissionResult

Inherits:
Object
  • Object
show all
Defined in:
lib/mws/apis/feeds/submission_result.rb

Defined Under Namespace

Classes: Response

Constant Summary collapse

Status =
Mws::Enum.for(
  complete: 'Complete', 
  processing: 'Processing', 
  rejected: 'Rejected'
)

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#messages_processedObject (readonly)

Returns the value of attribute messages_processed.



15
16
17
# File 'lib/mws/apis/feeds/submission_result.rb', line 15

def messages_processed
  @messages_processed
end

#transaction_idObject (readonly)

Returns the value of attribute transaction_id.



15
16
17
# File 'lib/mws/apis/feeds/submission_result.rb', line 15

def transaction_id
  @transaction_id
end

Class Method Details

.from_xml(node) ⇒ Object



35
36
37
# File 'lib/mws/apis/feeds/submission_result.rb', line 35

def self.from_xml(node)
  new node
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
42
43
# File 'lib/mws/apis/feeds/submission_result.rb', line 39

def ==(other)
  return true if equal? other
  return false unless other.class == self.class
  transaction_id == other.transaction_id
end

#count_for(type) ⇒ Object



45
46
47
# File 'lib/mws/apis/feeds/submission_result.rb', line 45

def count_for(type)
  @counts[Response::Type.for(type).sym]
end

#response_for(message_id) ⇒ Object



49
50
51
# File 'lib/mws/apis/feeds/submission_result.rb', line 49

def response_for(message_id)
  @responses[message_id.to_s.to_sym]
end