Method: CloudConvert::Entity.collection
- Defined in:
- lib/cloudconvert/entity.rb
.collection(response) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/cloudconvert/entity.rb', line 8 def collection(response) CloudConvert::Collection.new( response.data.collect { |item| new(item) }, response.links, response., ) end |