Class: Rubyoverflow::UserTimelineEvent
- Inherits:
-
Object
- Object
- Rubyoverflow::UserTimelineEvent
- Defined in:
- lib/rubyoverflow/userTimelineEvent.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#comment_id ⇒ Object
readonly
Returns the value of attribute comment_id.
-
#creation_date ⇒ Object
readonly
Returns the value of attribute creation_date.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#detail ⇒ Object
readonly
Returns the value of attribute detail.
-
#post_id ⇒ Object
readonly
Returns the value of attribute post_id.
-
#post_type ⇒ Object
readonly
Returns the value of attribute post_type.
-
#timeline_type ⇒ Object
readonly
Returns the value of attribute timeline_type.
-
#user_id ⇒ Object
readonly
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(hash, request_path = '') ⇒ UserTimelineEvent
constructor
A new instance of UserTimelineEvent.
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
#action ⇒ Object (readonly)
Returns the value of attribute action.
8 9 10 |
# File 'lib/rubyoverflow/userTimelineEvent.rb', line 8 def action @action end |
#comment_id ⇒ Object (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_date ⇒ Object (readonly)
Returns the value of attribute creation_date.
9 10 11 |
# File 'lib/rubyoverflow/userTimelineEvent.rb', line 9 def creation_date @creation_date end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
10 11 12 |
# File 'lib/rubyoverflow/userTimelineEvent.rb', line 10 def description @description end |
#detail ⇒ Object (readonly)
Returns the value of attribute detail.
11 12 13 |
# File 'lib/rubyoverflow/userTimelineEvent.rb', line 11 def detail @detail end |
#post_id ⇒ Object (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_type ⇒ Object (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_type ⇒ Object (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_id ⇒ Object (readonly)
Returns the value of attribute user_id.
3 4 5 |
# File 'lib/rubyoverflow/userTimelineEvent.rb', line 3 def user_id @user_id end |