class Braintree::CustomerSessionInput
Attributes
Public Class Methods
Source
# File lib/braintree/graphql/inputs/customer_session_input.rb, line 19 def initialize(attributes) @attrs = attributes.keys set_instance_variables_from_hash(attributes) @phone = attributes[:phone] ? PhoneInput.new(attributes[:phone]) : nil end
Public Instance Methods
Source
# File lib/braintree/graphql/inputs/customer_session_input.rb, line 25 def inspect inspected_attributes = @attrs.map { |attr| "#{attr}:#{send(attr).inspect}" } "#<#{self.class} #{inspected_attributes.join(" ")}>" end
Source
# File lib/braintree/graphql/inputs/customer_session_input.rb, line 30 def to_graphql_variables variables = {} variables["email"] = email if email variables["hashedEmail"] = hashed_email if hashed_email variables["phone"] = phone.to_graphql_variables if phone variables["hashedPhone"] = hashed_phone if hashed_phone variables["deviceFingerprintId"] = device_fingerprint_id if device_fingerprint_id variables["paypalAppInstalled"] = paypal_app_installed if paypal_app_installed variables["venmoAppInstalled"] = venmo_app_installed if venmo_app_installed variables["userAgent"] = user_agent if user_agent variables end