class Braintree::PaymentRecommendations
Attributes
Public Class Methods
Source
# File lib/braintree/graphql/types/payment_recommendations.rb, line 29 def self._new(*args) self.new(*args) end
Protected Class Methods
Source
# File lib/braintree/graphql/types/payment_recommendations.rb, line 13 def initialize(attributes) @attrs = [:payment_option, :recommended_priority] @payment_option = attributes[:paymentOption] if attributes[:paymentOption] @recommended_priority = attributes[:recommendedPriority] if attributes[:recommendedPriority] end
Public Instance Methods
Source
# File lib/braintree/graphql/types/payment_recommendations.rb, line 20 def inspect inspected_attributes = @attrs.map { |attr| "#{attr}:#{send(attr).inspect}" } "#<#{self.class} #{inspected_attributes.join(" ")}>" end