Class: AgridClient::DataCheck
- Inherits:
-
Object
- Object
- AgridClient::DataCheck
- Includes:
- SwaggerModel
- Defined in:
- lib/agrid_client/models/data_check.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
Returns the value of attribute status.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
- .attribute_map ⇒ Object
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#initialize(attributes = {}) ⇒ DataCheck
constructor
Initializes the object.
Methods included from SwaggerModel
#_deserialize, #_to_hash, #build_from_hash, #eql?, #to_body, #to_hash
Constructor Details
#initialize(attributes = {}) ⇒ DataCheck
Initializes the object
26 27 28 29 30 31 32 33 34 |
# File 'lib/agrid_client/models/data_check.rb', line 26 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} self.type = attributes[:'type'] if attributes[:'type'] self.status = attributes[:'status'] if attributes[:'status'] end |
Instance Attribute Details
#status ⇒ Object
Returns the value of attribute status.
7 8 9 |
# File 'lib/agrid_client/models/data_check.rb', line 7 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/agrid_client/models/data_check.rb', line 7 def type @type end |
Class Method Details
.attribute_map ⇒ Object
9 10 11 12 13 14 |
# File 'lib/agrid_client/models/data_check.rb', line 9 def self.attribute_map { :'type' => :'type', :'status' => :'status' } end |
.swagger_types ⇒ Object
Attribute type mapping.
17 18 19 20 21 22 |
# File 'lib/agrid_client/models/data_check.rb', line 17 def self.swagger_types { :'type' => :'String', :'status' => 'String' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
38 39 40 41 42 43 |
# File 'lib/agrid_client/models/data_check.rb', line 38 def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type && status == o.status end |