Class: INat::Report::Period::Year

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

#-(num) ⇒ Object



64
65
66
# File 'lib/inat/data/sets/wrappers.rb', line 64

def - num
  self.class[@value - num]
end

#query_paramsObject



72
73
74
# File 'lib/inat/data/sets/wrappers.rb', line 72

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

#to_sObject



68
69
70
# File 'lib/inat/data/sets/wrappers.rb', line 68

def to_s
  "<i class=\"glyphicon glyphicon-calendar\"></i>  #{ @value } год"
end