Class: MWS::Orders::Collection
- Inherits:
-
Document
show all
- Includes:
- Enumerable
- Defined in:
- lib/mws/orders/collection.rb
Overview
Returns a list of parsed objects
Instance Attribute Summary
Attributes inherited from Document
#node
Instance Method Summary
collapse
Methods inherited from Document
#at_xpath, #initialize, #xpath
Instance Method Details
#attributes ⇒ Object
19
20
21
|
# File 'lib/mws/orders/collection.rb', line 19
def attributes
map(&:attributes)
end
|
#each ⇒ Object
11
12
13
|
# File 'lib/mws/orders/collection.rb', line 11
def each
raise NotImplementedError
end
|
#empty? ⇒ Boolean
15
16
17
|
# File 'lib/mws/orders/collection.rb', line 15
def empty?
count.zero?
end
|
#inspect ⇒ Object
Also known as:
to_s
23
24
25
|
# File 'lib/mws/orders/collection.rb', line 23
def inspect
"#<#{self.class.name} #{to_a}>"
end
|