Class: UR::Product::DistributionEvent
- Inherits:
-
Object
- Object
- UR::Product::DistributionEvent
- Defined in:
- lib/ur/product/distribution_event.rb
Instance Attribute Summary collapse
-
#end_date ⇒ Object
readonly
Returns the value of attribute end_date.
-
#event_type ⇒ Object
readonly
Returns the value of attribute event_type.
-
#platform ⇒ Object
readonly
Returns the value of attribute platform.
-
#receiving_agent_group ⇒ Object
readonly
Returns the value of attribute receiving_agent_group.
-
#start_date ⇒ Object
readonly
Returns the value of attribute start_date.
Instance Method Summary collapse
-
#initialize(data) ⇒ DistributionEvent
constructor
A new instance of DistributionEvent.
Constructor Details
#initialize(data) ⇒ DistributionEvent
Returns a new instance of DistributionEvent.
7 8 9 10 11 12 13 |
# File 'lib/ur/product/distribution_event.rb', line 7 def initialize(data) @start_date = Time.parse(data['startdate']) if !data['startdate'].nil? @end_date = Time.parse(data['enddate']) if !data['enddate'].nil? @receiving_agent_group = data['recievingagentgroup'] @platform = data['platform'] @event_type = data['type'] end |
Instance Attribute Details
#end_date ⇒ Object (readonly)
Returns the value of attribute end_date.
4 5 6 |
# File 'lib/ur/product/distribution_event.rb', line 4 def end_date @end_date end |
#event_type ⇒ Object (readonly)
Returns the value of attribute event_type.
4 5 6 |
# File 'lib/ur/product/distribution_event.rb', line 4 def event_type @event_type end |
#platform ⇒ Object (readonly)
Returns the value of attribute platform.
4 5 6 |
# File 'lib/ur/product/distribution_event.rb', line 4 def platform @platform end |
#receiving_agent_group ⇒ Object (readonly)
Returns the value of attribute receiving_agent_group.
4 5 6 |
# File 'lib/ur/product/distribution_event.rb', line 4 def receiving_agent_group @receiving_agent_group end |
#start_date ⇒ Object (readonly)
Returns the value of attribute start_date.
4 5 6 |
# File 'lib/ur/product/distribution_event.rb', line 4 def start_date @start_date end |