Class: Social::Env
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/social/env.rb', line 5 def id @id end |
#prefix ⇒ Object
Returns the value of attribute prefix.
5 6 7 |
# File 'lib/social/env.rb', line 5 def prefix @prefix end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/social/env.rb', line 5 def type @type end |
Class Method Details
.id ⇒ Object
18 19 20 |
# File 'lib/social/env.rb', line 18 def id instance.id end |
.init(params) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/social/env.rb', line 9 def init(params) raise "Cant find social env in params #{params.inspect}" unless params[:social_env] env = params[:social_env] instance.id = env[:id] instance.type = env[:type] instance.prefix = env[:prefix] end |
.prefix ⇒ Object
26 27 28 |
# File 'lib/social/env.rb', line 26 def prefix instance.prefix end |
.type ⇒ Object
22 23 24 |
# File 'lib/social/env.rb', line 22 def type instance.type end |