Class: INat::Report::Period::Month

Inherits:
INat::Report::Period show all
Defined in:
lib/inat/data/sets/wrappers.rb

Constant Summary collapse

NAMES =
{
  1  => 'Январь',
  2  => 'Февраль',
  3  => 'Март',
  4  => 'Апрель',
  5  => 'Май',
  6  => 'Июнь',
  7  => 'Июль',
  8  => 'Август',
  9  => 'Сентябрь',
  10 => 'Октябрь',
  11 => 'Ноябрь',
  12 => 'Декабрь'
}

Instance Attribute Summary

Attributes inherited from INat::Report::Period

#value

Instance Method Summary collapse

Methods inherited from INat::Report::Period

#<=>, [], #initialize

Constructor Details

This class inherits a constructor from INat::Report::Period

Instance Method Details

#query_paramsObject



109
110
111
# File 'lib/inat/data/sets/wrappers.rb', line 109

def query_params
  "month=#{ @value }"
end

#to_sObject



105
106
107
# File 'lib/inat/data/sets/wrappers.rb', line 105

def to_s
  "<i class=\"glyphicon glyphicon-calendar\"></i>  #{ NAMES[@value] }"
end