Class: INat::Report::Period::Winter

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

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



160
161
162
# File 'lib/inat/data/sets/wrappers.rb', line 160

def query_params
  "d1=#{ @value - 1 }-10-01&d2=#{ @value }-04-30"
end

#to_sObject



156
157
158
# File 'lib/inat/data/sets/wrappers.rb', line 156

def to_s
  "<i class=\"glyphicon glyphicon-calendar\"></i>  Зима #{ @value - 1 }#{ @value }"
end