Class: NewsmastMastodon::AlttextGetAccount
- Inherits:
-
Object
- Object
- NewsmastMastodon::AlttextGetAccount
- Defined in:
- app/models/newsmast_mastodon/alttext_get_account.rb
Instance Attribute Summary collapse
-
#default_lang ⇒ Object
Returns the value of attribute default_lang.
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#name ⇒ Object
Returns the value of attribute name.
-
#notification_email ⇒ Object
Returns the value of attribute notification_email.
-
#subscription ⇒ Object
Returns the value of attribute subscription.
-
#usage ⇒ Object
Returns the value of attribute usage.
-
#usage_limit ⇒ Object
Returns the value of attribute usage_limit.
-
#webhook_url ⇒ Object
Returns the value of attribute webhook_url.
-
#whitelabel ⇒ Object
Returns the value of attribute whitelabel.
Instance Method Summary collapse
- #has_errors? ⇒ Boolean
-
#initialize(attributes = {}) ⇒ AlttextGetAccount
constructor
A new instance of AlttextGetAccount.
Constructor Details
#initialize(attributes = {}) ⇒ AlttextGetAccount
Returns a new instance of AlttextGetAccount.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/models/newsmast_mastodon/alttext_get_account.rb', line 8 def initialize(attributes = {}) @name = attributes['name'] @webhook_url = attributes['webhook_url'] @notification_email = attributes['notification_email'] @usage = attributes['usage'] @usage_limit = attributes['usage_limit'] @whitelabel = attributes['whitelabel'] @default_lang = attributes['default_lang'] @subscription = attributes['subscription'] @errors = attributes['errors'] || nil end |
Instance Attribute Details
#default_lang ⇒ Object
Returns the value of attribute default_lang.
5 6 7 |
# File 'app/models/newsmast_mastodon/alttext_get_account.rb', line 5 def default_lang @default_lang end |
#errors ⇒ Object
Returns the value of attribute errors.
5 6 7 |
# File 'app/models/newsmast_mastodon/alttext_get_account.rb', line 5 def errors @errors end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'app/models/newsmast_mastodon/alttext_get_account.rb', line 5 def name @name end |
#notification_email ⇒ Object
Returns the value of attribute notification_email.
5 6 7 |
# File 'app/models/newsmast_mastodon/alttext_get_account.rb', line 5 def notification_email @notification_email end |
#subscription ⇒ Object
Returns the value of attribute subscription.
5 6 7 |
# File 'app/models/newsmast_mastodon/alttext_get_account.rb', line 5 def subscription @subscription end |
#usage ⇒ Object
Returns the value of attribute usage.
5 6 7 |
# File 'app/models/newsmast_mastodon/alttext_get_account.rb', line 5 def usage @usage end |
#usage_limit ⇒ Object
Returns the value of attribute usage_limit.
5 6 7 |
# File 'app/models/newsmast_mastodon/alttext_get_account.rb', line 5 def usage_limit @usage_limit end |
#webhook_url ⇒ Object
Returns the value of attribute webhook_url.
5 6 7 |
# File 'app/models/newsmast_mastodon/alttext_get_account.rb', line 5 def webhook_url @webhook_url end |
#whitelabel ⇒ Object
Returns the value of attribute whitelabel.
5 6 7 |
# File 'app/models/newsmast_mastodon/alttext_get_account.rb', line 5 def whitelabel @whitelabel end |
Instance Method Details
#has_errors? ⇒ Boolean
20 21 22 |
# File 'app/models/newsmast_mastodon/alttext_get_account.rb', line 20 def has_errors? @errors.present? end |