lib/travis/client/account.rb in travis-1.11.1 vs lib/travis/client/account.rb in travis-1.12.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require 'travis/client' module Travis module Client class Account < Entity @@ -30,27 +32,27 @@ def on_trial? !subscribed? and !education? end def repos_count - load_attribute("repos_count") { repositories.count } + load_attribute('repos_count') { repositories.count } end def repositories - attributes['repositories'] ||= session.repos(:owner_name => login) + attributes['repositories'] ||= session.repos(owner_name: login) end def member? session.accounts.include? self end alias educational? education? private - def load_attribute(name, &block) - session.accounts if missing? name - block ? attributes.fetch(name.to_s, &block) : attributes[name.to_s] - end + def load_attribute(name, &block) + session.accounts if missing? name + block ? attributes.fetch(name.to_s, &block) : attributes[name.to_s] + end end end end