Class: DJNML::Delete
- Inherits:
-
Object
- Object
- DJNML::Delete
- Defined in:
- lib/djnml/delete.rb
Instance Attribute Summary collapse
-
#doc_date ⇒ Object
readonly
Returns the value of attribute doc_date.
-
#product ⇒ Object
readonly
Returns the value of attribute product.
-
#publisher ⇒ Object
readonly
Returns the value of attribute publisher.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#seq ⇒ Object
readonly
Returns the value of attribute seq.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Delete
constructor
A new instance of Delete.
Constructor Details
#initialize(args = {}) ⇒ Delete
Returns a new instance of Delete.
5 6 7 8 9 10 11 |
# File 'lib/djnml/delete.rb', line 5 def initialize(args = {}) @product = args[:product] if args[:product] @doc_date = Time.parse(args[:doc_date]) if args[:doc_date] @seq = args[:seq].to_i if args[:seq] @publisher = args[:publisher] if args[:publisher] @reason = args[:reason] if args[:reason] end |
Instance Attribute Details
#doc_date ⇒ Object (readonly)
Returns the value of attribute doc_date.
3 4 5 |
# File 'lib/djnml/delete.rb', line 3 def doc_date @doc_date end |
#product ⇒ Object (readonly)
Returns the value of attribute product.
3 4 5 |
# File 'lib/djnml/delete.rb', line 3 def product @product end |
#publisher ⇒ Object (readonly)
Returns the value of attribute publisher.
3 4 5 |
# File 'lib/djnml/delete.rb', line 3 def publisher @publisher end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
3 4 5 |
# File 'lib/djnml/delete.rb', line 3 def reason @reason end |
#seq ⇒ Object (readonly)
Returns the value of attribute seq.
3 4 5 |
# File 'lib/djnml/delete.rb', line 3 def seq @seq end |