Sha256: eeb0c0b24383cf91ec2b1542312436bd138f20a9d53588848e9336105ad3167a

Contents?: true

Size: 227 Bytes

Versions: 134

Compression:

Stored size: 227 Bytes

Contents

module Shelly
  class Model
    def current_user
      @user = User.new
      @user.load_credentials
      @user
    end

    def shelly
      @shelly ||= Client.new(current_user.email, current_user.password)
    end
  end
end

Version data entries

134 entries across 134 versions & 1 rubygems

Version Path
shelly-0.2.8 lib/shelly/model.rb
shelly-0.2.7 lib/shelly/model.rb
shelly-0.2.6.pre lib/shelly/model.rb
shelly-0.2.5 lib/shelly/model.rb
shelly-0.2.4 lib/shelly/model.rb
shelly-0.2.3 lib/shelly/model.rb
shelly-0.2.2 lib/shelly/model.rb
shelly-0.2.1 lib/shelly/model.rb
shelly-0.2.0 lib/shelly/model.rb
shelly-0.1.40 lib/shelly/model.rb
shelly-0.1.39 lib/shelly/model.rb
shelly-0.1.38 lib/shelly/model.rb
shelly-0.1.37.pre lib/shelly/model.rb
shelly-0.1.36 lib/shelly/model.rb
shelly-0.1.35 lib/shelly/model.rb
shelly-0.1.34 lib/shelly/model.rb
shelly-0.1.34.pre lib/shelly/model.rb
shelly-0.1.33 lib/shelly/model.rb
shelly-0.1.32 lib/shelly/model.rb
shelly-0.1.31 lib/shelly/model.rb