Class: TRMNL::API::Models::Recipes::Author
- Inherits:
-
Struct
- Object
- Struct
- TRMNL::API::Models::Recipes::Author
- Defined in:
- lib/trmnl/api/models/recipes/author.rb
Overview
Models the author of the API response.
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#description ⇒ Object
Returns the value of attribute description.
-
#description_locales ⇒ Object
Returns the value of attribute description_locales.
-
#email_address ⇒ Object
Returns the value of attribute email_address.
-
#field_type ⇒ Object
Returns the value of attribute field_type.
-
#github_url ⇒ Object
Returns the value of attribute github_url.
-
#keyname ⇒ Object
Returns the value of attribute keyname.
-
#learn_more_url ⇒ Object
Returns the value of attribute learn_more_url.
-
#name ⇒ Object
Returns the value of attribute name.
-
#youtube_url ⇒ Object
Returns the value of attribute youtube_url.
Class Method Summary collapse
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category
8 9 10 |
# File 'lib/trmnl/api/models/recipes/author.rb', line 8 def category @category end |
#description ⇒ Object
Returns the value of attribute description
8 9 10 |
# File 'lib/trmnl/api/models/recipes/author.rb', line 8 def description @description end |
#description_locales ⇒ Object
Returns the value of attribute description_locales
8 9 10 |
# File 'lib/trmnl/api/models/recipes/author.rb', line 8 def description_locales @description_locales end |
#email_address ⇒ Object
Returns the value of attribute email_address
8 9 10 |
# File 'lib/trmnl/api/models/recipes/author.rb', line 8 def email_address @email_address end |
#field_type ⇒ Object
Returns the value of attribute field_type
8 9 10 |
# File 'lib/trmnl/api/models/recipes/author.rb', line 8 def field_type @field_type end |
#github_url ⇒ Object
Returns the value of attribute github_url
8 9 10 |
# File 'lib/trmnl/api/models/recipes/author.rb', line 8 def github_url @github_url end |
#keyname ⇒ Object
Returns the value of attribute keyname
8 9 10 |
# File 'lib/trmnl/api/models/recipes/author.rb', line 8 def keyname @keyname end |
#learn_more_url ⇒ Object
Returns the value of attribute learn_more_url
8 9 10 |
# File 'lib/trmnl/api/models/recipes/author.rb', line 8 def learn_more_url @learn_more_url end |
#name ⇒ Object
Returns the value of attribute name
8 9 10 |
# File 'lib/trmnl/api/models/recipes/author.rb', line 8 def name @name end |
#youtube_url ⇒ Object
Returns the value of attribute youtube_url
8 9 10 |
# File 'lib/trmnl/api/models/recipes/author.rb', line 8 def youtube_url @youtube_url end |
Class Method Details
.for(locale_reducer: LocaleReducer, **attributes) ⇒ Object
20 21 22 23 |
# File 'lib/trmnl/api/models/recipes/author.rb', line 20 def self.for(locale_reducer: LocaleReducer, **attributes) description_locales = locale_reducer.call attributes new(description_locales:, **attributes) end |