Method: Coinbase::Client::Network#list_invalid_properties

Defined in:
lib/coinbase/client/models/network.rb

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
# File 'lib/coinbase/client/models/network.rb', line 164

def list_invalid_properties
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
  invalid_properties = Array.new
  if @id.nil?
    invalid_properties.push('invalid value for "id", id cannot be nil.')
  end

  if @display_name.nil?
    invalid_properties.push('invalid value for "display_name", display_name cannot be nil.')
  end

  if @chain_id.nil?
    invalid_properties.push('invalid value for "chain_id", chain_id cannot be nil.')
  end

  if @protocol_family.nil?
    invalid_properties.push('invalid value for "protocol_family", protocol_family cannot be nil.')
  end

  if @is_testnet.nil?
    invalid_properties.push('invalid value for "is_testnet", is_testnet cannot be nil.')
  end

  if @native_asset.nil?
    invalid_properties.push('invalid value for "native_asset", native_asset cannot be nil.')
  end

  if @feature_set.nil?
    invalid_properties.push('invalid value for "feature_set", feature_set cannot be nil.')
  end

  invalid_properties
end