Class: Postmen::Custom::Passport

Inherits:
Object
  • Object
show all
Includes:
Postmen::Common
Defined in:
lib/postmen/custom/passport.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Postmen::Common

#to_hash

Constructor Details

#initialize(options) ⇒ Passport

Returns a new instance of Passport.



9
10
11
12
# File 'lib/postmen/custom/passport.rb', line 9

def initialize(options)
  @number = options[:number]
  @issue_date = options[:issue_date]
end

Instance Attribute Details

#issue_dateObject (readonly)

Returns the value of attribute issue_date.



6
7
8
# File 'lib/postmen/custom/passport.rb', line 6

def issue_date
  @issue_date
end

#numberObject (readonly)

Returns the value of attribute number.



6
7
8
# File 'lib/postmen/custom/passport.rb', line 6

def number
  @number
end