Class: Zulip::StreamSubscription
- Inherits:
-
Object
- Object
- Zulip::StreamSubscription
- Defined in:
- lib/zulip/stream_subscription.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#email_address ⇒ Object
readonly
Returns the value of attribute email_address.
-
#in_home_view ⇒ Object
readonly
Returns the value of attribute in_home_view.
-
#invite_only ⇒ Object
readonly
Returns the value of attribute invite_only.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#notifications ⇒ Object
readonly
Returns the value of attribute notifications.
-
#subscribers ⇒ Object
readonly
Returns the value of attribute subscribers.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ StreamSubscription
constructor
A new instance of StreamSubscription.
Constructor Details
#initialize(attrs = {}) ⇒ StreamSubscription
Returns a new instance of StreamSubscription.
6 7 8 9 10 |
# File 'lib/zulip/stream_subscription.rb', line 6 def initialize(attrs={}) attrs.each do |name, value| instance_variable_set("@#{name}", value) end end |
Instance Attribute Details
#color ⇒ Object (readonly)
Returns the value of attribute color.
3 4 5 |
# File 'lib/zulip/stream_subscription.rb', line 3 def color @color end |
#email_address ⇒ Object (readonly)
Returns the value of attribute email_address.
3 4 5 |
# File 'lib/zulip/stream_subscription.rb', line 3 def email_address @email_address end |
#in_home_view ⇒ Object (readonly)
Returns the value of attribute in_home_view.
3 4 5 |
# File 'lib/zulip/stream_subscription.rb', line 3 def in_home_view @in_home_view end |
#invite_only ⇒ Object (readonly)
Returns the value of attribute invite_only.
3 4 5 |
# File 'lib/zulip/stream_subscription.rb', line 3 def invite_only @invite_only end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/zulip/stream_subscription.rb', line 3 def name @name end |
#notifications ⇒ Object (readonly)
Returns the value of attribute notifications.
3 4 5 |
# File 'lib/zulip/stream_subscription.rb', line 3 def notifications @notifications end |
#subscribers ⇒ Object (readonly)
Returns the value of attribute subscribers.
3 4 5 |
# File 'lib/zulip/stream_subscription.rb', line 3 def subscribers @subscribers end |