Class: Github::Nippou::UserEvents
- Inherits:
-
Object
- Object
- Github::Nippou::UserEvents
- Defined in:
- lib/github/nippou/user_events.rb
Instance Method Summary collapse
- #collect ⇒ Object
-
#initialize(client, user, since_date, until_date) ⇒ UserEvents
constructor
A new instance of UserEvents.
Constructor Details
#initialize(client, user, since_date, until_date) ⇒ UserEvents
Returns a new instance of UserEvents.
9 10 11 12 13 14 15 |
# File 'lib/github/nippou/user_events.rb', line 9 def initialize(client, user, since_date, until_date) @client = client @user = user @since_time = Time.parse(since_date).beginning_of_day until_time = Time.parse(until_date).end_of_day @range = @since_time..until_time end |
Instance Method Details
#collect ⇒ Object
17 18 19 |
# File 'lib/github/nippou/user_events.rb', line 17 def collect uniq(filter(retrieve)) end |