Class: String

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

Instance Method Summary collapse

Instance Method Details

#from_jsonObject



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

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

#periodizeObject



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

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