Class: JIRA::TimeInfo

Inherits:
Entity
  • Object
show all
Defined in:
lib/jiraSOAP/entities/time_info.rb

Overview

Simple structure for a time and time zone; only used by JIRA::ServerInfo objects, which themselves are only created when RemoteAPI#get_server_info is called.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Entity

add_attributes, #initialize_with_xml, new_with_xml

Instance Attribute Details

#server_timeTime

Returns:

  • (Time)


11
12
13
# File 'lib/jiraSOAP/entities/time_info.rb', line 11

def server_time
  @server_time
end

#timezoneString

Returns in the form of ‘America/Toronto’.

Returns:

  • (String)

    in the form of ‘America/Toronto’



14
15
16
# File 'lib/jiraSOAP/entities/time_info.rb', line 14

def timezone
  @timezone
end