Class: Opsicle::UserProfileInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/opsicle/commands/user_profile_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(environment) ⇒ UserProfileInfo

Returns a new instance of UserProfileInfo.



8
9
10
11
# File 'lib/opsicle/commands/user_profile_info.rb', line 8

def initialize(environment)
  @client = Client.new(environment)
  @user_profile = UserProfile.new(@client)
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



6
7
8
# File 'lib/opsicle/commands/user_profile_info.rb', line 6

def client
  @client
end

Instance Method Details

#execute(options = {}) ⇒ Object



13
14
15
# File 'lib/opsicle/commands/user_profile_info.rb', line 13

def execute(options={})
  Output.say output.to_json
end

#outputObject



17
18
19
# File 'lib/opsicle/commands/user_profile_info.rb', line 17

def output
  @user_profile.attributes
end