Class: Publisher

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user, opts = {}) ⇒ Publisher

Returns a new instance of Publisher.


6
7
8
9
10
11
# File 'lib/publisher.rb', line 6

def initialize(user, opts={})
  self.user = user
  self.open = opts[:open]
  self.prefill = opts[:prefill]
  self.public = opts[:public]
end

Instance Attribute Details

#openObject

Returns the value of attribute open


4
5
6
# File 'lib/publisher.rb', line 4

def open
  @open
end

#prefillObject

Returns the value of attribute prefill


4
5
6
# File 'lib/publisher.rb', line 4

def prefill
  @prefill
end

#publicObject

Returns the value of attribute public


4
5
6
# File 'lib/publisher.rb', line 4

def public
  @public
end

#userObject

Returns the value of attribute user


4
5
6
# File 'lib/publisher.rb', line 4

def user
  @user
end