class Polar::User

Public Class Methods

new(data) click to toggle source
Calls superclass method Polar::Base::new
# File lib/polar/user.rb, line 3
def initialize(data)
  super(data)
end

Public Instance Methods

avatar() click to toggle source
# File lib/polar/user.rb, line 7
def avatar
  tinyurl
end
to_h() click to toggle source
# File lib/polar/user.rb, line 11
def to_h
  @data.merge({ "avatar" => @data["tinyurl"]})
end