Class: CreditCardReader::Result
- Inherits:
-
Object
- Object
- CreditCardReader::Result
- Defined in:
- lib/credit_card_reader/result.rb
Instance Attribute Summary collapse
-
#brand ⇒ Object
readonly
Returns the value of attribute brand.
-
#valid ⇒ Object
readonly
Returns the value of attribute valid.
Instance Method Summary collapse
-
#initialize(options) ⇒ Result
constructor
A new instance of Result.
- #valid? ⇒ Boolean
Constructor Details
#initialize(options) ⇒ Result
Returns a new instance of Result.
5 6 7 8 |
# File 'lib/credit_card_reader/result.rb', line 5 def initialize() @brand = [:brand] @valid = [:valid] end |
Instance Attribute Details
#brand ⇒ Object (readonly)
Returns the value of attribute brand.
3 4 5 |
# File 'lib/credit_card_reader/result.rb', line 3 def brand @brand end |
#valid ⇒ Object (readonly)
Returns the value of attribute valid.
3 4 5 |
# File 'lib/credit_card_reader/result.rb', line 3 def valid @valid end |
Instance Method Details
#valid? ⇒ Boolean
10 11 12 |
# File 'lib/credit_card_reader/result.rb', line 10 def valid? valid end |