Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/jira/mixins.rb

Instance Method Summary collapse

Instance Method Details

#from_jsonObject



31
32
33
# File 'lib/jira/mixins.rb', line 31

def from_json
  JSON.parse(self) rescue {}
end

#periodizeObject



35
36
37
# File 'lib/jira/mixins.rb', line 35

def periodize
  self.strip[-1] == "." ? self : self + "."
end