Class: StrawberryAPI::ApiKey
- Inherits:
-
Object
- Object
- StrawberryAPI::ApiKey
- Defined in:
- lib/strawberry_api/api_key.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#key ⇒ Object
Returns the value of attribute key.
-
#name ⇒ Object
Returns the value of attribute name.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ ApiKey
constructor
A new instance of ApiKey.
Constructor Details
#initialize(params = {}) ⇒ ApiKey
Returns a new instance of ApiKey
12 13 14 15 16 |
# File 'lib/strawberry_api/api_key.rb', line 12 def initialize(params = {}) params.each do |k, v| instance_variable_set("@#{k}", v) unless v.nil? end end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at
9 10 11 |
# File 'lib/strawberry_api/api_key.rb', line 9 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id
5 6 7 |
# File 'lib/strawberry_api/api_key.rb', line 5 def id @id end |
#key ⇒ Object
Returns the value of attribute key
8 9 10 |
# File 'lib/strawberry_api/api_key.rb', line 8 def key @key end |
#name ⇒ Object
Returns the value of attribute name
7 8 9 |
# File 'lib/strawberry_api/api_key.rb', line 7 def name @name end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
10 11 12 |
# File 'lib/strawberry_api/api_key.rb', line 10 def updated_at @updated_at end |
#user_id ⇒ Object
Returns the value of attribute user_id
6 7 8 |
# File 'lib/strawberry_api/api_key.rb', line 6 def user_id @user_id end |