Class: NetRegistry::Card

Inherits:
Object
  • Object
show all
Defined in:
lib/net_registry/card.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(number: nil, description: nil, expiry: nil, ccv: nil, type: nil) ⇒ Card

Returns a new instance of Card.



33
34
35
36
37
38
39
# File 'lib/net_registry/card.rb', line 33

def initialize(number: nil, description: nil, expiry: nil, ccv: nil, type: nil)
  @number      = number
  @description = description
  @expiry      = expiry
  @ccv         = ccv
  @type        = type
end

Instance Attribute Details

#ccvObject

Returns the value of attribute ccv.



27
28
29
# File 'lib/net_registry/card.rb', line 27

def ccv
  @ccv
end

#descriptionObject

Returns the value of attribute description.



27
28
29
# File 'lib/net_registry/card.rb', line 27

def description
  @description
end

#expiryObject

Returns the value of attribute expiry.



27
28
29
# File 'lib/net_registry/card.rb', line 27

def expiry
  @expiry
end

#numberObject

Returns the value of attribute number.



27
28
29
# File 'lib/net_registry/card.rb', line 27

def number
  @number
end

#typeObject

Returns the value of attribute type.



27
28
29
# File 'lib/net_registry/card.rb', line 27

def type
  @type
end