Class: DJNML::Delete

Inherits:
Object
  • Object
show all
Defined in:
lib/djnml/delete.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_dateObject (readonly)

Returns the value of attribute doc_date.



3
4
5
# File 'lib/djnml/delete.rb', line 3

def doc_date
  @doc_date
end

#productObject (readonly)

Returns the value of attribute product.



3
4
5
# File 'lib/djnml/delete.rb', line 3

def product
  @product
end

#publisherObject (readonly)

Returns the value of attribute publisher.



3
4
5
# File 'lib/djnml/delete.rb', line 3

def publisher
  @publisher
end

#reasonObject (readonly)

Returns the value of attribute reason.



3
4
5
# File 'lib/djnml/delete.rb', line 3

def reason
  @reason
end

#seqObject (readonly)

Returns the value of attribute seq.



3
4
5
# File 'lib/djnml/delete.rb', line 3

def seq
  @seq
end