Class: Enklawa::Api::ForumThread

Inherits:
Struct
  • Object
show all
Defined in:
lib/enklawa/api/forum_thread.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#authorObject

Returns the value of attribute author

Returns:

  • (Object)

    the current value of author



3
4
5
# File 'lib/enklawa/api/forum_thread.rb', line 3

def author
  @author
end

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



3
4
5
# File 'lib/enklawa/api/forum_thread.rb', line 3

def content
  @content
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



3
4
5
# File 'lib/enklawa/api/forum_thread.rb', line 3

def id
  @id
end

Returns the value of attribute link

Returns:

  • (Object)

    the current value of link



3
4
5
# File 'lib/enklawa/api/forum_thread.rb', line 3

def link
  @link
end

#pub_dateObject

Returns the value of attribute pub_date

Returns:

  • (Object)

    the current value of pub_date



3
4
5
# File 'lib/enklawa/api/forum_thread.rb', line 3

def pub_date
  @pub_date
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



3
4
5
# File 'lib/enklawa/api/forum_thread.rb', line 3

def title
  @title
end

Instance Method Details

#to_hObject



5
6
7
8
9
10
11
12
13
14
# File 'lib/enklawa/api/forum_thread.rb', line 5

def to_h
  {
    id: id,
    title: title,
    content: content,
    pub_date: pub_date.utc.iso8601,
    link: link,
    author: author
  }
end