Class: Clever::Models::District

Inherits:
Object
  • Object
show all
Defined in:
lib/clever/models/district.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ District

Returns a new instance of District.



4
5
6
# File 'lib/clever/models/district.rb', line 4

def initialize params
  params.each { |k,v| instance_variable_set("@#{k}", v) unless v.nil? }
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



2
3
4
# File 'lib/clever/models/district.rb', line 2

def id
  @id
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/clever/models/district.rb', line 2

def name
  @name
end