Class: Braintree::LocalPaymentCompleted::BlikAlias
- Inherits:
-
Object
- Object
- Braintree::LocalPaymentCompleted::BlikAlias
- Includes:
- BaseModule
- Defined in:
- lib/braintree/local_payment_completed/blik_alias.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ BlikAlias
constructor
A new instance of BlikAlias.
- #inspect ⇒ Object
Methods included from BaseModule
Methods included from BaseModule::Methods
#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class
Constructor Details
#initialize(attributes) ⇒ BlikAlias
Returns a new instance of BlikAlias.
9 10 11 |
# File 'lib/braintree/local_payment_completed/blik_alias.rb', line 9 def initialize(attributes) set_instance_variables_from_hash attributes unless attributes.nil? end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
6 7 8 |
# File 'lib/braintree/local_payment_completed/blik_alias.rb', line 6 def key @key end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
7 8 9 |
# File 'lib/braintree/local_payment_completed/blik_alias.rb', line 7 def label @label end |
Instance Method Details
#inspect ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/braintree/local_payment_completed/blik_alias.rb', line 13 def inspect attrs = [:key, :label] formatted_attrs = attrs.map do |attr| "#{attr}: #{send(attr).inspect}" end "#<#{formatted_attrs.join(", ")}>" end |