Class: Bskyrb::AppBskyActorGetprofile::GetProfile::Input

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actorObject

Returns the value of attribute actor.



2126
2127
2128
# File 'lib/bskyrb/generated_classes.rb', line 2126

def actor
  @actor
end

Class Method Details

.from_hash(hash) ⇒ Object



2128
2129
2130
2131
2132
2133
2134
2135
# File 'lib/bskyrb/generated_classes.rb', line 2128

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

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

  instance
end

Instance Method Details

#to_hObject



2137
2138
2139
2140
2141
2142
2143
# File 'lib/bskyrb/generated_classes.rb', line 2137

def to_h
  {

    "actor" => actor

  }
end