Sha256: aa9957362f164e80e40bb6893eac2bd9e39c0208721f5e7c7ea168e36d0089ec

Contents?: true

Size: 262 Bytes

Versions: 7

Compression:

Stored size: 262 Bytes

Contents

class CreditsCollectionResponse
  attr_accessor :id, :cast

  def initialize
    self.id = 550
    self.cast = [CreditsResponse.new]
  end

  def to_hash
    {
      id: id,
      cast: cast.map(&:to_hash)
    }
  end

  def to_json
    to_hash.to_json
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
enceladus-0.0.8 spec/support/responses/credits_collection_response.rb
enceladus-0.0.7 spec/support/responses/credits_collection_response.rb
enceladus-0.0.6 spec/support/responses/credits_collection_response.rb
enceladus-0.0.5 spec/support/responses/credits_collection_response.rb
enceladus-0.0.4 spec/support/responses/credits_collection_response.rb
enceladus-0.0.3 spec/support/responses/credits_collection_response.rb
enceladus-0.0.2 spec/support/responses/credits_collection_response.rb