class SantanderChile::ApiClient::Token
Constants
- ATTRIBUTES
Public Class Methods
new(args = {})
click to toggle source
# File lib/santander_chile/api_client/token.rb, line 15 def initialize(args = {}) args.to_h.each do |key, value| next unless ATTRIBUTES.include?(key.to_sym) instance_variable_set("@#{key}", value) end end
Public Instance Methods
to_h()
click to toggle source
# File lib/santander_chile/api_client/token.rb, line 23 def to_h Hash[ATTRIBUTES.map { |key| [key, instance_variable_get("@#{key}")] }] end