lib/intrinio-sdk/models/company_news.rb in intrinio-sdk-6.27.2 vs lib/intrinio-sdk/models/company_news.rb in intrinio-sdk-6.27.3

- old
+ new

@@ -1,11 +1,11 @@ =begin #Intrinio API #Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://docs.intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner. -OpenAPI spec version: 2.56.6 +OpenAPI spec version: 2.61.1 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: unset =end @@ -57,10 +57,13 @@ attr_accessor :article_sentiment # The confidence score of the sentiment rating attr_accessor :article_sentiment_confidence + # The article body. Requires additional access. + attr_accessor :body + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values def initialize(datatype, allowable_values) @@ -96,11 +99,12 @@ :'language' => :'language', :'word_count' => :'word_count', :'spam' => :'spam', :'business_relevance' => :'business_relevance', :'article_sentiment' => :'article_sentiment', - :'article_sentiment_confidence' => :'article_sentiment_confidence' + :'article_sentiment_confidence' => :'article_sentiment_confidence', + :'body' => :'body' } end # Attribute type mapping. def self.swagger_types @@ -117,11 +121,12 @@ :'language' => :'String', :'word_count' => :'Integer', :'spam' => :'BOOLEAN', :'business_relevance' => :'Float', :'article_sentiment' => :'String', - :'article_sentiment_confidence' => :'Float' + :'article_sentiment_confidence' => :'Float', + :'body' => :'String' } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -191,10 +196,14 @@ if attributes.has_key?(:'article_sentiment_confidence') self.article_sentiment_confidence = attributes[:'article_sentiment_confidence'] end + if attributes.has_key?(:'body') + self.body = attributes[:'body'] + end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties @@ -249,11 +258,12 @@ language == o.language && word_count == o.word_count && spam == o.spam && business_relevance == o.business_relevance && article_sentiment == o.article_sentiment && - article_sentiment_confidence == o.article_sentiment_confidence + article_sentiment_confidence == o.article_sentiment_confidence && + body == o.body end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -261,10 +271,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, title, publication_date, url, summary, source, company, topics, copyright, language, word_count, spam, business_relevance, article_sentiment, article_sentiment_confidence].hash + [id, title, publication_date, url, summary, source, company, topics, copyright, language, word_count, spam, business_relevance, article_sentiment, article_sentiment_confidence, body].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself