Sha256: a24f06306c406013eb3e572e4065664c35e55e434807a2a814b0d577a2428e32

Contents?: true

Size: 328 Bytes

Versions: 1

Compression:

Stored size: 328 Bytes

Contents

class Fantasyhub::Event

  attr_reader :actor, :event_type, :repo_url, :score, :created_at

  def initialize(hash)
    @actor      =  hash.fetch(:actor)
    @event_type =  hash.fetch(:event_type)
    @repo_url   =  hash.fetch(:repo_url)
    @score      =  hash.fetch(:score)
    @created_at =  hash.fetch(:created_at)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fantasyhub-1.0.1 lib/fantasyhub/event.rb