Class: Bskyrb::AppBskyActorDefs::ViewerState
- Inherits:
-
Object
- Object
- Bskyrb::AppBskyActorDefs::ViewerState
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#blockedBy ⇒ Object
Returns the value of attribute blockedBy.
-
#blocking ⇒ Object
Returns the value of attribute blocking.
-
#followedBy ⇒ Object
Returns the value of attribute followedBy.
-
#following ⇒ Object
Returns the value of attribute following.
-
#muted ⇒ Object
Returns the value of attribute muted.
-
#mutedByList ⇒ Object
Returns the value of attribute mutedByList.
Class Method Summary collapse
Instance Attribute Details
#blockedBy ⇒ Object
Returns the value of attribute blockedBy.
146 147 148 |
# File 'lib/bskyrb/generated_classes.rb', line 146 def blockedBy @blockedBy end |
#blocking ⇒ Object
Returns the value of attribute blocking.
148 149 150 |
# File 'lib/bskyrb/generated_classes.rb', line 148 def blocking @blocking end |
#followedBy ⇒ Object
Returns the value of attribute followedBy.
152 153 154 |
# File 'lib/bskyrb/generated_classes.rb', line 152 def followedBy @followedBy end |
#following ⇒ Object
Returns the value of attribute following.
150 151 152 |
# File 'lib/bskyrb/generated_classes.rb', line 150 def following @following end |
#muted ⇒ Object
Returns the value of attribute muted.
142 143 144 |
# File 'lib/bskyrb/generated_classes.rb', line 142 def muted @muted end |
#mutedByList ⇒ Object
Returns the value of attribute mutedByList.
144 145 146 |
# File 'lib/bskyrb/generated_classes.rb', line 144 def mutedByList @mutedByList end |
Class Method Details
.from_hash(hash) ⇒ Object
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 |
# File 'lib/bskyrb/generated_classes.rb', line 154 def self.from_hash(hash) # httparty-returned string-keyed hash instance = new instance.send(:muted=, hash["muted"]) instance.send(:mutedByList=, hash["mutedByList"]) instance.send(:blockedBy=, hash["blockedBy"]) instance.send(:blocking=, hash["blocking"]) instance.send(:following=, hash["following"]) instance.send(:followedBy=, hash["followedBy"]) instance end |