class Fantasyhub::Event

Attributes

actor[R]
created_at[R]
event_type[R]
repo_url[R]
score[R]

Public Class Methods

new(hash) click to toggle source
# File lib/fantasyhub/event.rb, line 5
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