Skip to content

Commit

Permalink
Improves BinData#inspect method
Browse files Browse the repository at this point in the history
  • Loading branch information
kinduff authored and Holly Stotelmyer committed Nov 9, 2020
1 parent 89df7df commit cfebd9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/braintree/bin_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ def initialize(attributes)
end

def inspect
formatted_attrs = self.class._attributes.map do |attr|
nice_attributes = self.class._attributes.map do |attr|
"#{attr}: #{send(attr).inspect}"
end
"#<BinData #{formatted_attrs.join(", ")}>"
"#<#{self.class} #{nice_attributes.join(", ")}>"
end

def self._attributes # :nodoc:
Expand Down

0 comments on commit cfebd9e

Please sign in to comment.