Class: Zensana::Asana::User
- Inherits:
-
Object
- Object
- Zensana::Asana::User
- Includes:
- Access
- Defined in:
- lib/zensana/models/asana/user.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id) ⇒ User
constructor
A new instance of User.
- #method_missing(name, *args, &block) ⇒ Object
Methods included from Access
Constructor Details
#initialize(id) ⇒ User
Returns a new instance of User.
12 13 14 |
# File 'lib/zensana/models/asana/user.rb', line 12 def initialize(id) @attributes = fetch(id) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
16 17 18 |
# File 'lib/zensana/models/asana/user.rb', line 16 def method_missing(name, *args, &block) attributes[name.to_s] || super end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
10 11 12 |
# File 'lib/zensana/models/asana/user.rb', line 10 def attributes @attributes end |