Module: Githubris::Publicity

Included in:
Gist
Defined in:
lib/githubris/publicity.rb

Instance Method Summary collapse

Instance Method Details

#privatize!Object



10
11
12
# File 'lib/githubris/publicity.rb', line 10

def privatize!
  @attributes[:public] = false
end

#public?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/githubris/publicity.rb', line 2

def public?
  @attributes[:public]
end

#publicize!Object



6
7
8
# File 'lib/githubris/publicity.rb', line 6

def publicize!
  @attributes[:public] = true
end