Class: Struct
- Inherits:
-
Object
show all
- Defined in:
- lib/struct.rb
Direct Known Subclasses
BestMatchResponse, Category, CountResponse, CreateResponse, DeleteResponse, ExistsResponse, GeocoderRequest, GeocoderResponse, GetStatusResponse, GetStatusResponse::Attr, GetStatusResponse::Status, Location, Message, PostingHistory, RangeRequest, RangeResponse, RangeResponse::Range, SearchResponse, Source, StatusUpdateRequest, SummaryResponse, UpdateResponse
Class Method Summary
collapse
Class Method Details
.from_array(a) ⇒ Object
11
12
13
14
|
# File 'lib/struct.rb', line 11
def self.from_array(a)
a.collect do |b|
end
end
|
.from_hash(h) ⇒ Object
3
4
5
6
7
8
9
|
# File 'lib/struct.rb', line 3
def self.from_hash(h)
o = new
h.each do |m, v|
o[m.to_sym] = v
end
o
end
|