Class: Supportify::Faq
- Inherits:
-
BaseObject
- Object
- BaseObject
- Supportify::Faq
- Defined in:
- lib/supportify_client/models/faq.rb
Instance Attribute Summary collapse
-
#answer ⇒ Object
Returns the value of attribute answer.
-
#categories ⇒ Object
Returns the value of attribute categories.
-
#controversy_score ⇒ Object
Returns the value of attribute controversy_score.
-
#date_created ⇒ Object
Returns the value of attribute date_created.
-
#date_last_modified ⇒ Object
Returns the value of attribute date_last_modified.
-
#direct_views ⇒ Object
Returns the value of attribute direct_views.
-
#id ⇒ Object
Returns the value of attribute id.
-
#question ⇒ Object
Returns the value of attribute question.
-
#rating ⇒ Object
Returns the value of attribute rating.
-
#raw_score ⇒ Object
Returns the value of attribute raw_score.
-
#search_views ⇒ Object
Returns the value of attribute search_views.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#total_views ⇒ Object
Returns the value of attribute total_views.
-
#votes ⇒ Object
Returns the value of attribute votes.
-
#was_created_by ⇒ Object
Returns the value of attribute was_created_by.
-
#was_last_modified_by ⇒ Object
Returns the value of attribute was_last_modified_by.
Class Method Summary collapse
-
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Faq
constructor
A new instance of Faq.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ Faq
Returns a new instance of Faq.
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'lib/supportify_client/models/faq.rb', line 83 def initialize(attributes = {}) return if !attributes.is_a?(Hash) || attributes.empty? # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'id'] self.id = attributes[:'id'] end if attributes[:'answer'] self.answer = attributes[:'answer'] end if attributes[:'categories'] if (value = attributes[:'categories']).is_a?(Array) self.categories = value end end if attributes[:'controversy_score'] self.controversy_score = attributes[:'controversy_score'] end if attributes[:'date_created'] self.date_created = attributes[:'date_created'] end if attributes[:'date_last_modified'] self.date_last_modified = attributes[:'date_last_modified'] end if attributes[:'direct_views'] self.direct_views = attributes[:'direct_views'] end if attributes[:'question'] self.question = attributes[:'question'] end if attributes[:'rating'] self. = attributes[:'rating'] end if attributes[:'raw_score'] self.raw_score = attributes[:'raw_score'] end if attributes[:'search_views'] self.search_views = attributes[:'search_views'] end if attributes[:'tags'] if (value = attributes[:'tags']).is_a?(Array) self. = value end end if attributes[:'total_views'] self.total_views = attributes[:'total_views'] end if attributes[:'votes'] self.votes = attributes[:'votes'] end if attributes[:'was_created_by'] self.was_created_by = attributes[:'was_created_by'] end if attributes[:'was_last_modified_by'] self.was_last_modified_by = attributes[:'was_last_modified_by'] end end |
Instance Attribute Details
#answer ⇒ Object
Returns the value of attribute answer.
4 5 6 |
# File 'lib/supportify_client/models/faq.rb', line 4 def answer @answer end |
#categories ⇒ Object
Returns the value of attribute categories.
4 5 6 |
# File 'lib/supportify_client/models/faq.rb', line 4 def categories @categories end |
#controversy_score ⇒ Object
Returns the value of attribute controversy_score.
4 5 6 |
# File 'lib/supportify_client/models/faq.rb', line 4 def controversy_score @controversy_score end |
#date_created ⇒ Object
Returns the value of attribute date_created.
4 5 6 |
# File 'lib/supportify_client/models/faq.rb', line 4 def date_created @date_created end |
#date_last_modified ⇒ Object
Returns the value of attribute date_last_modified.
4 5 6 |
# File 'lib/supportify_client/models/faq.rb', line 4 def date_last_modified @date_last_modified end |
#direct_views ⇒ Object
Returns the value of attribute direct_views.
4 5 6 |
# File 'lib/supportify_client/models/faq.rb', line 4 def direct_views @direct_views end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/supportify_client/models/faq.rb', line 4 def id @id end |
#question ⇒ Object
Returns the value of attribute question.
4 5 6 |
# File 'lib/supportify_client/models/faq.rb', line 4 def question @question end |
#rating ⇒ Object
Returns the value of attribute rating.
4 5 6 |
# File 'lib/supportify_client/models/faq.rb', line 4 def end |
#raw_score ⇒ Object
Returns the value of attribute raw_score.
4 5 6 |
# File 'lib/supportify_client/models/faq.rb', line 4 def raw_score @raw_score end |
#search_views ⇒ Object
Returns the value of attribute search_views.
4 5 6 |
# File 'lib/supportify_client/models/faq.rb', line 4 def search_views @search_views end |
#tags ⇒ Object
Returns the value of attribute tags.
4 5 6 |
# File 'lib/supportify_client/models/faq.rb', line 4 def end |
#total_views ⇒ Object
Returns the value of attribute total_views.
4 5 6 |
# File 'lib/supportify_client/models/faq.rb', line 4 def total_views @total_views end |
#votes ⇒ Object
Returns the value of attribute votes.
4 5 6 |
# File 'lib/supportify_client/models/faq.rb', line 4 def votes @votes end |
#was_created_by ⇒ Object
Returns the value of attribute was_created_by.
4 5 6 |
# File 'lib/supportify_client/models/faq.rb', line 4 def was_created_by @was_created_by end |
#was_last_modified_by ⇒ Object
Returns the value of attribute was_last_modified_by.
4 5 6 |
# File 'lib/supportify_client/models/faq.rb', line 4 def was_last_modified_by @was_last_modified_by end |
Class Method Details
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/supportify_client/models/faq.rb', line 6 def self.attribute_map { # Unique identifier representing a specific content entry within an application. :'id' => :'id', # The body of the content entry. Can be an answer to a FAQ, a knowledge base entry, or any other type of string. This is a non-encoded string and may contain HTML. :'answer' => :'answer', # :'categories' => :'categories', # A score that measures the disparity between positive and negative votes for the content entry. :'controversy_score' => :'controversy_score', # The date and time that the content entry was created. :'date_created' => :'date_created', # The date and time that the content entry was last modified. :'date_last_modified' => :'date_last_modified', # The total number of views that the content entry has received individually (i.e., access via the '/faqs/<id>' path. :'direct_views' => :'direct_views', # The title of the content entry. Can be a question, a title, or any other type of string. This is a non-encoded string and may contain HTML. :'question' => :'question', # The score for the content entry within the application. This is weighted score tabulated based on a total of up and down votes and compared against other votes for content entries in the application. :'rating' => :'rating', # The total number of positive votes minus the number of negative votes for the content entry. :'raw_score' => :'raw_score', # The total number of views that the content entry has received as part of a set of search results (i.e., access via the '/search' path. :'search_views' => :'search_views', # :'tags' => :'tags', # The total number of views that the content entry has received as part of a whole collection, individually, or as part of a set of search results. :'total_views' => :'total_views', # The total number of votes that the content entry has received since it was created. :'votes' => :'votes', # :'was_created_by' => :'was_created_by', # :'was_last_modified_by' => :'was_last_modified_by' } end |
.swagger_types ⇒ Object
attribute type
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/supportify_client/models/faq.rb', line 61 def self.swagger_types { :'id' => :'Integer', :'answer' => :'String', :'categories' => :'Array<Category>', :'controversy_score' => :'Integer', :'date_created' => :'DateTime', :'date_last_modified' => :'DateTime', :'direct_views' => :'Integer', :'question' => :'String', :'rating' => :'Float', :'raw_score' => :'Integer', :'search_views' => :'Integer', :'tags' => :'Array<Tag>', :'total_views' => :'Integer', :'votes' => :'Integer', :'was_created_by' => :'User', :'was_last_modified_by' => :'User' } end |