Class: WhenHub::User

Inherits:
Object
  • Object
show all
Defined in:
lib/whenhub/user.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#clientObject

Returns the value of attribute client.



17
18
19
# File 'lib/whenhub/user.rb', line 17

def client
  @client
end

Class Method Details

.build(client, attributes) ⇒ Object



19
20
21
22
23
# File 'lib/whenhub/user.rb', line 19

def self.build(client, attributes)
  new(attributes).tap do |schedule|
    schedule.client = client
  end
end