Class: Giact::CancelRecurringCheckList
- Inherits:
-
Object
- Object
- Giact::CancelRecurringCheckList
- Defined in:
- lib/giact/cancel_recurring_check_list.rb
Instance Attribute Summary collapse
-
#cancelled ⇒ Object
Returns the value of attribute cancelled.
-
#details ⇒ Object
Returns the value of attribute details.
Class Method Summary collapse
Instance Method Summary collapse
- #cancelled? ⇒ Boolean
-
#initialize(row = "") ⇒ CancelRecurringCheckList
constructor
A new instance of CancelRecurringCheckList.
Constructor Details
#initialize(row = "") ⇒ CancelRecurringCheckList
Returns a new instance of CancelRecurringCheckList.
5 6 7 |
# File 'lib/giact/cancel_recurring_check_list.rb', line 5 def initialize(row="") @cancelled, @details = row.split("|") end |
Instance Attribute Details
#cancelled ⇒ Object
Returns the value of attribute cancelled.
3 4 5 |
# File 'lib/giact/cancel_recurring_check_list.rb', line 3 def cancelled @cancelled end |
#details ⇒ Object
Returns the value of attribute details.
3 4 5 |
# File 'lib/giact/cancel_recurring_check_list.rb', line 3 def details @details end |
Class Method Details
.from_response(response) ⇒ Object
13 14 15 |
# File 'lib/giact/cancel_recurring_check_list.rb', line 13 def self.from_response(response) response.split(/\n/).map{|line| Giact::CancelRecurringCheckList.new(line)} end |
Instance Method Details
#cancelled? ⇒ Boolean
9 10 11 |
# File 'lib/giact/cancel_recurring_check_list.rb', line 9 def cancelled? @cancelled.downcase == 'true' end |