Sha256: ced277e8ed53340a982f687f7de38237c31923cd5fee3545ed00697c9ae4297f

Contents?: true

Size: 443 Bytes

Versions: 1

Compression:

Stored size: 443 Bytes

Contents

require_relative 'user'

class Feedback
  attr_reader :id, :submission_id, :talk_id, :user, :body, :created_at, :updated_at

  def initialize(json_hash)
    @id = json_hash[:id]
    @submission_id = json_hash[:submission_id]
    @talk_id = json_hash[:talk_id]
    @user = User.new(json_hash[:user])
    @body = json_hash[:body]
    @created_at = Time.parse(json_hash[:created_at])
    @updated_at = Time.parse(json_hash[:updated_at])
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
papercall-1.0.0 lib/papercall/models/feedback.rb