Class: Zulip::StreamSubscription

Inherits:
Object
  • Object
show all
Defined in:
lib/zulip/stream_subscription.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#colorObject (readonly)

Returns the value of attribute color.



3
4
5
# File 'lib/zulip/stream_subscription.rb', line 3

def color
  @color
end

#email_addressObject (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_viewObject (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_onlyObject (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

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/zulip/stream_subscription.rb', line 3

def name
  @name
end

#notificationsObject (readonly)

Returns the value of attribute notifications.



3
4
5
# File 'lib/zulip/stream_subscription.rb', line 3

def notifications
  @notifications
end

#subscribersObject (readonly)

Returns the value of attribute subscribers.



3
4
5
# File 'lib/zulip/stream_subscription.rb', line 3

def subscribers
  @subscribers
end