Class: NetRegistry::Card
- Inherits:
-
Object
- Object
- NetRegistry::Card
- Defined in:
- lib/net_registry/card.rb
Instance Attribute Summary collapse
-
#ccv ⇒ Object
Returns the value of attribute ccv.
-
#description ⇒ Object
Returns the value of attribute description.
-
#expiry ⇒ Object
Returns the value of attribute expiry.
-
#number ⇒ Object
Returns the value of attribute number.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(number: nil, description: nil, expiry: nil, ccv: nil, type: nil) ⇒ Card
constructor
A new instance of Card.
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
#ccv ⇒ Object
Returns the value of attribute ccv.
27 28 29 |
# File 'lib/net_registry/card.rb', line 27 def ccv @ccv end |
#description ⇒ Object
Returns the value of attribute description.
27 28 29 |
# File 'lib/net_registry/card.rb', line 27 def description @description end |
#expiry ⇒ Object
Returns the value of attribute expiry.
27 28 29 |
# File 'lib/net_registry/card.rb', line 27 def expiry @expiry end |
#number ⇒ Object
Returns the value of attribute number.
27 28 29 |
# File 'lib/net_registry/card.rb', line 27 def number @number end |
#type ⇒ Object
Returns the value of attribute type.
27 28 29 |
# File 'lib/net_registry/card.rb', line 27 def type @type end |