Class: MyTimeline::Github::GithubBuilder
- Inherits:
-
Object
- Object
- MyTimeline::Github::GithubBuilder
- Defined in:
- app/scrapers/my_timeline/github/github_builder.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#github_event ⇒ Object
readonly
Returns the value of attribute github_event.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
- #build_event ⇒ Object
-
#initialize(user, github_event) ⇒ GithubBuilder
constructor
A new instance of GithubBuilder.
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_event ⇒ Object (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 |
#user ⇒ Object (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_event ⇒ Object
12 13 14 |
# File 'app/scrapers/my_timeline/github/github_builder.rb', line 12 def build_event #Children should define this! end |