Sha256: 3e505b6228b6c9e0faaaa3cb2c0e58aaf748a950405debda14bee592ddafc16d

Contents?: true

Size: 986 Bytes

Versions: 1

Compression:

Stored size: 986 Bytes

Contents

module Rubyoverflow
  class UserTimelineEvent
    attr_reader :user_id
    attr_reader :timeline_type
    attr_reader :post_id
    attr_reader :post_type
    attr_reader :comment_id
    attr_reader :action
    attr_reader :creation_date
    attr_reader :description
    attr_reader :detail
  
    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
  
  
  end

  class UserTimelineEventDash < BaseDash

    property :user_id
    property :timeline_type
    property :post_id
    property :post_type
    property :comment_id
    property :action
    property :creation_date
    property :description
    property :detail
  
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubyoverflow-1.0.2 lib/rubyoverflow/userTimelineEvent.rb