Class: DataSource

Inherits:
ActiveRecordShared show all
Defined in:
app/models/data_source.rb

Overview

don’t know exactly

Instance Method Summary collapse

Instance Method Details

#is_other?Boolean

Returns boolean of comparison true only if key == ‘other’

Returns:

  • (Boolean)


20
21
22
# File 'app/models/data_source.rb', line 20

def is_other?
	key == 'other'
end

#to_sObject

Returns description



14
15
16
# File 'app/models/data_source.rb', line 14

def to_s
	description
end