Class: AgridClient::DataCheck

Inherits:
Object
  • Object
show all
Includes:
SwaggerModel
Defined in:
lib/agrid_client/models/data_check.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from SwaggerModel

#_deserialize, #_to_hash, #build_from_hash, #eql?, #to_body, #to_hash

Constructor Details

#initialize(attributes = {}) ⇒ DataCheck

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



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

#statusObject

Returns the value of attribute status.



7
8
9
# File 'lib/agrid_client/models/data_check.rb', line 7

def status
  @status
end

#typeObject

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_mapObject



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_typesObject

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.

Parameters:

  • Object (Object)

    to be compared



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