Class: MyTimeline::Github::GithubBuilder

Inherits:
Object
  • Object
show all
Defined in:
app/scrapers/my_timeline/github/github_builder.rb

Direct Known Subclasses

ForkEventBuilder

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user, github_event) ⇒ GithubBuilder

Returns a new instance of GithubBuilder.



7
8
9
10
# File 'app/scrapers/my_timeline/github/github_builder.rb', line 7

def initialize(user, github_event)
  @user         = user
  @github_event = github_event
end

Instance Attribute Details

#github_eventObject (readonly)

Returns the value of attribute github_event.



5
6
7
# File 'app/scrapers/my_timeline/github/github_builder.rb', line 5

def github_event
  @github_event
end

#userObject (readonly)

Returns the value of attribute user.



5
6
7
# File 'app/scrapers/my_timeline/github/github_builder.rb', line 5

def user
  @user
end

Instance Method Details

#build_eventObject



12
13
14
# File 'app/scrapers/my_timeline/github/github_builder.rb', line 12

def build_event
  #Children should define this!
end