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.28 lib/shelly/model.rb
shelly-0.2.27 lib/shelly/model.rb
shelly-0.2.26 lib/shelly/model.rb
shelly-0.2.25 lib/shelly/model.rb
shelly-0.2.24 lib/shelly/model.rb
shelly-0.2.23 lib/shelly/model.rb
shelly-0.2.22 lib/shelly/model.rb
shelly-0.2.21 lib/shelly/model.rb
shelly-0.2.20 lib/shelly/model.rb
shelly-0.2.19 lib/shelly/model.rb
shelly-0.2.18 lib/shelly/model.rb
shelly-0.2.17 lib/shelly/model.rb
shelly-0.2.16 lib/shelly/model.rb
shelly-0.2.15 lib/shelly/model.rb
shelly-0.2.14 lib/shelly/model.rb
shelly-0.2.13 lib/shelly/model.rb
shelly-0.2.12 lib/shelly/model.rb
shelly-0.2.11 lib/shelly/model.rb
shelly-0.2.10 lib/shelly/model.rb
shelly-0.2.9 lib/shelly/model.rb