Method: Coinbase::Client::FetchStakingRewards200Response#list_invalid_properties

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

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# File 'lib/coinbase/client/models/fetch_staking_rewards200_response.rb', line 94

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

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

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

  invalid_properties
end