Class: Bskyrb::AppBskyActorDefs::ProfileView

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#avatarObject

Returns the value of attribute avatar.



48
49
50
# File 'lib/bskyrb/generated_classes.rb', line 48

def avatar
  @avatar
end

#descriptionObject

Returns the value of attribute description.



46
47
48
# File 'lib/bskyrb/generated_classes.rb', line 46

def description
  @description
end

#didObject

Returns the value of attribute did.



40
41
42
# File 'lib/bskyrb/generated_classes.rb', line 40

def did
  @did
end

#displayNameObject

Returns the value of attribute displayName.



44
45
46
# File 'lib/bskyrb/generated_classes.rb', line 44

def displayName
  @displayName
end

#handleObject

Returns the value of attribute handle.



42
43
44
# File 'lib/bskyrb/generated_classes.rb', line 42

def handle
  @handle
end

#indexedAtObject

Returns the value of attribute indexedAt.



50
51
52
# File 'lib/bskyrb/generated_classes.rb', line 50

def indexedAt
  @indexedAt
end

#labelsObject

Returns the value of attribute labels.



54
55
56
# File 'lib/bskyrb/generated_classes.rb', line 54

def labels
  @labels
end

#viewerObject

Returns the value of attribute viewer.



52
53
54
# File 'lib/bskyrb/generated_classes.rb', line 52

def viewer
  @viewer
end

Class Method Details

.from_hash(hash) ⇒ Object



56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/bskyrb/generated_classes.rb', line 56

def self.from_hash(hash)
  # httparty-returned string-keyed hash
  instance = new

  instance.send(:did=, hash["did"])

  instance.send(:handle=, hash["handle"])

  instance.send(:displayName=, hash["displayName"])

  instance.send(:description=, hash["description"])

  instance.send(:avatar=, hash["avatar"])

  instance.send(:indexedAt=, hash["indexedAt"])

  instance.send(:viewer=, hash["viewer"])

  instance.send(:labels=, hash["labels"])

  instance
end