Class: Rubyoverflow::UserTimelineEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyoverflow/userTimelineEvent.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash, request_path = '') ⇒ UserTimelineEvent

Returns a new instance of UserTimelineEvent.



13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/rubyoverflow/userTimelineEvent.rb', line 13

def initialize(hash, request_path = '')
  dash = UserTimelineEventDash.new hash

  @user_id = dash.user_id
  @timeline_type = dash.timeline_type
  @post_id = dash.post_id
  @post_type = dash.post_type
  @comment_id = dash.comment_id
  @action = dash.action
  @creation_date = dash.creation_date
  @description = dash.description
  @detail = dash.detail
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



8
9
10
# File 'lib/rubyoverflow/userTimelineEvent.rb', line 8

def action
  @action
end

#comment_idObject (readonly)

Returns the value of attribute comment_id.



7
8
9
# File 'lib/rubyoverflow/userTimelineEvent.rb', line 7

def comment_id
  @comment_id
end

#creation_dateObject (readonly)

Returns the value of attribute creation_date.



9
10
11
# File 'lib/rubyoverflow/userTimelineEvent.rb', line 9

def creation_date
  @creation_date
end

#descriptionObject (readonly)

Returns the value of attribute description.



10
11
12
# File 'lib/rubyoverflow/userTimelineEvent.rb', line 10

def description
  @description
end

#detailObject (readonly)

Returns the value of attribute detail.



11
12
13
# File 'lib/rubyoverflow/userTimelineEvent.rb', line 11

def detail
  @detail
end

#post_idObject (readonly)

Returns the value of attribute post_id.



5
6
7
# File 'lib/rubyoverflow/userTimelineEvent.rb', line 5

def post_id
  @post_id
end

#post_typeObject (readonly)

Returns the value of attribute post_type.



6
7
8
# File 'lib/rubyoverflow/userTimelineEvent.rb', line 6

def post_type
  @post_type
end

#timeline_typeObject (readonly)

Returns the value of attribute timeline_type.



4
5
6
# File 'lib/rubyoverflow/userTimelineEvent.rb', line 4

def timeline_type
  @timeline_type
end

#user_idObject (readonly)

Returns the value of attribute user_id.



3
4
5
# File 'lib/rubyoverflow/userTimelineEvent.rb', line 3

def user_id
  @user_id
end